Skip to content

Commit

Permalink
feat: add wayland support (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
proletarius101 authored Jun 29, 2024
1 parent a74cc1a commit b803d02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
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

0 comments on commit b803d02

Please sign in to comment.