Skip to content

Commit

Permalink
Don't run under Wayland by default on GNOME until CSD is available
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Aug 18, 2021
1 parent 5316ba7 commit be45917
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions im.riot.Riot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ sdk-extensions:
command: run.sh
separate-locales: false
finish-args:
# Required due to being a GUI application
- --socket=x11
- --socket=wayland
- --socket=fallback-x11
# Required to make sure x11 performance is achieved on all platforms
# At least that's what the legends tell. it might be worth experimenting
# with dropping this permission.
Expand Down Expand Up @@ -219,7 +219,7 @@ modules:
dest-filename: run.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}"
- if test -n "$WAYLAND_DISPLAY" && test -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY"; then set -- --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"; fi
- if test -n "$WAYLAND_DISPLAY" && test -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" && [ "$DESKTOP_SESSION" != "gnome" ]; then set -- --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"; fi
- zypak-wrapper.sh /app/main/element-desktop "$@"
- type: file
path: im.riot.Riot.metainfo.xml
Expand Down

0 comments on commit be45917

Please sign in to comment.