Skip to content

Commit

Permalink
Allow users to opt-in to Wayland support with ELECTRON_OZONE_PLATFORM…
Browse files Browse the repository at this point in the history
  • Loading branch information
AKoskovich committed Jan 22, 2025
1 parent cb96609 commit abe7793
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions snap/local/bin/launcher
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/bin/bash

if [[ ! -n "$DISABLE_WAYLAND" && -n "$WAYLAND_DISPLAY" ]]; then
WAYLAND_OPTS="--enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=auto"
fi

exec "$SNAP/usr/share/discord/Discord" --use-tray-icon --no-sandbox --disable-seccomp-filter-sandbox $WAYLAND_OPTS "$@"
exec "$SNAP/usr/share/discord/Discord" --use-tray-icon --no-sandbox --disable-seccomp-filter-sandbox "$@"
1 change: 0 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ apps:
# Correct the TMPDIR path for Chromium Framework/Electron to
# ensure libappindicator has readable resources
TMPDIR: $XDG_RUNTIME_DIR
DISABLE_WAYLAND: 1
# Included temporarily until https://github.com/snapcore/snapcraft-desktop-integration/issues/28
# is resolved.
NOTIFY_IGNORE_PORTAL: 1
Expand Down

0 comments on commit abe7793

Please sign in to comment.