-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74cc1a
commit b803d02
Showing
2 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
#!/bin/sh | ||
|
||
set -oue pipefail | ||
|
||
export FLATPAK_ID="${FLATPAK_ID:-io.beekeeperstudio.Studio}" | ||
export TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}" | ||
|
||
exec zypak-wrapper /app/beekeeper-studio/beekeeper-studio-bin $@ | ||
FLAGS='' | ||
if [[ $XDG_SESSION_TYPE == "wayland" && -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]] | ||
then | ||
FLAGS="$FLAGS --enable-wayland-ime --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations --gtk-version=4" | ||
if [ -c /dev/nvidia0 ] | ||
then | ||
FLAGS="$FLAGS --disable-gpu-sandbox" | ||
fi | ||
fi | ||
|
||
exec zypak-wrapper /app/beekeeper-studio/beekeeper-studio-bin $FLAGS "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters