Skip to content

Commit

Permalink
feat: Add option to force discover-overlay to launch on GNOME Wayland…
Browse files Browse the repository at this point in the history
… (See /etc/default/discover-overlay)
  • Loading branch information
KyleGospo committed Sep 28, 2023
1 parent d171b8f commit 75f85d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions system_files/deck/shared/usr/etc/default/discover-overlay
@@ -1 +1,2 @@
AUTO_LAUNCH_DISCOVER_OVERLAY=1
LAUNCH_DISCOVER_ON_GNOME_WAYLAND=0
2 changes: 2 additions & 0 deletions system_files/desktop/shared/usr/bin/bazzite-discover-overlay
Expand Up @@ -10,6 +10,8 @@ if [[ ${AUTO_LAUNCH_DISCOVER_OVERLAY} == 1 ]]; then
if grep -q "com.discordapp.Discord\|xyz.armcord.ArmCord\|de.shorsh.discord-screenaudio\|io.github.spacingbat3.webcord" <<< $(flatpak list); then
if [[ ${BASE_IMAGE_NAME} =~ "kinoite" || "$XDG_SESSION_TYPE" != "wayland" ]]; then
/usr/bin/discover-overlay
elif [[ ${BASE_IMAGE_NAME} =~ "silverblue" && "$XDG_SESSION_TYPE" == "wayland" && "${LAUNCH_DISCOVER_ON_GNOME_WAYLAND}" == 1 ]]; then
env GDK_BACKEND=x11 /usr/bin/discover-overlay
fi
fi
fi
@@ -1 +1,2 @@
AUTO_LAUNCH_DISCOVER_OVERLAY=0
LAUNCH_DISCOVER_ON_GNOME_WAYLAND=0

0 comments on commit 75f85d8

Please sign in to comment.