Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add wayland support #31

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions beekeeper-studio.sh
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 "$@"
7 changes: 4 additions & 3 deletions io.beekeeperstudio.Studio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ finish-args:
- --device=dri
- --share=ipc
- --share=network
- --socket=x11
- --socket=wayland
- --socket=fallback-x11
- --talk-name=org.freedesktop.Notifications
modules:
- name: beekeeper-studio
Expand Down Expand Up @@ -53,7 +54,7 @@ modules:
only-arches: [x86_64]
url: https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v4.6.2/Beekeeper-Studio-4.6.2.AppImage
sha512: bdc0cccdd0bc5022e8ee852cb3a93bb362142c2ba88893af7b4d05e4433a87620e85c9190796d108fd5153f64ff86dc9fb0a727ac55faf7a47cf2994ee38d2cc
dest_filename: Beekeeper-Studio.AppImage
dest-filename: Beekeeper-Studio.AppImage
x-checker-data:
type: json
url: https://api.github.com/repos/beekeeper-studio/beekeeper-studio/releases/latest
Expand All @@ -65,7 +66,7 @@ modules:

url: https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v4.6.2/Beekeeper-Studio-4.6.2-arm64.AppImage
sha512: d662f824eb5ec5d5db1bf8f1791fb54e07436810bcdf843c853327897a027b547e9bcfe8ebdc9b6db1220464344b0664eabc03661d78058bd4d64c2991a3433f
dest_filename: Beekeeper-Studio.AppImage
dest-filename: Beekeeper-Studio.AppImage
x-checker-data:
type: json
url: https://api.github.com/repos/beekeeper-studio/beekeeper-studio/releases/latest
Expand Down