mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-26 09:35:24 +00:00
feat: Launch discover-overlay on KDE Wayland since it's supported
This commit is contained in:
parent
e89ac7c5b8
commit
4790e60c79
@ -2,10 +2,13 @@
|
||||
|
||||
source /etc/default/discover-overlay
|
||||
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
|
||||
|
||||
# Run discover-overlay if discord is installed and we aren't using Wayland.
|
||||
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 [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
|
||||
if [[ ${BASE_IMAGE_NAME} =~ "kinoite" || "$XDG_SESSION_TYPE" != "wayland" ]]; then
|
||||
/usr/bin/discover-overlay
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user