Skip to content

Commit 36e073b

Browse files
committed
feat: Allow discover-overlay auto-launching to be disabled (and default disable) due to conflict with mangohud
1 parent 007431f commit 36e073b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Variant designed for usage as an alternative to SteamOS on the Steam Deck, and f
8484
- Built in support for Windows dual-boot thanks to Fedora's installation of GRUB being left intact.
8585
- Update break something? Easily roll back to the previous version of Bazzite thanks to `rpm-ostree`'s rollback functionality. You can even select previous images at boot.
8686
- Steam and Lutris preinstalled on the image as layered packages.
87-
- [Discover Overlay](https://github.com/trigg/Discover) for Discord pre-installed and automatically launches in both Gamemode and on the Desktop if Discord is installed.
87+
- [Discover Overlay](https://github.com/trigg/Discover) for Discord pre-installed and automatically launches in both Gamemode and on the Desktop if Discord is installed and feature is enabled. See `/etc/default/discover-overlay` to enable automatic launching.
8888
- Exclusively uses ZRAM by default with the option to switch back to a swap file and set a custom size if desired. <sub><sup>(1GB by default)</sup></sub>
8989
- BFQ I/O scheduler to prevent I/O starvation when installing games or during background `duperemove` and `rmlint` processes.
9090
- TLS/SSL secured DNS and NTP by default. <sup><sub>(This is a handheld PC you're likely to use on random public networks after all)</sub></sup>
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/usr/bin/env bash
22

3+
source /etc/default/discover-overlay
4+
35
# Run discover-overlay if discord is installed and we aren't using Wayland.
4-
if grep -q "com.discordapp.Discord" <<< $(flatpak list); then
5-
if [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
6-
/usr/bin/discover-overlay
6+
if [[ ${AUTO_LAUNCH_DISCOVER_OVERLAY} == 1 ]]; then
7+
if grep -q "com.discordapp.Discord" <<< $(flatpak list); then
8+
if [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
9+
/usr/bin/discover-overlay
10+
fi
711
fi
812
fi
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default disabled due to discover-overlay breaking mangohud in gamemode.
2+
AUTO_LAUNCH_DISCOVER_OVERLAY=0

0 commit comments

Comments
 (0)