bazzite/system_files/deck/shared/usr/bin/bazzite-discover-overlay

13 lines
433 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
source /etc/default/discover-overlay
# Run discover-overlay if discord is installed and we aren't using Wayland.
if [[ ${AUTO_LAUNCH_DISCOVER_OVERLAY} == 1 ]]; then
2023-09-24 23:18:49 -07:00
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
/usr/bin/discover-overlay
fi
fi
fi