feat: Allow discover-overlay auto-launching to be disabled (and default disable) due to conflict with mangohud

This commit is contained in:
Kyle Gospodnetich 2023-09-17 01:13:52 -07:00
parent 007431fcbc
commit 36e073b459
3 changed files with 10 additions and 4 deletions

View File

@ -84,7 +84,7 @@ Variant designed for usage as an alternative to SteamOS on the Steam Deck, and f
- Built in support for Windows dual-boot thanks to Fedora's installation of GRUB being left intact.
- 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.
- Steam and Lutris preinstalled on the image as layered packages.
- [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.
- [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.
- 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>
- BFQ I/O scheduler to prevent I/O starvation when installing games or during background `duperemove` and `rmlint` processes.
- 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>

View File

@ -1,8 +1,12 @@
#!/usr/bin/env bash
source /etc/default/discover-overlay
# Run discover-overlay if discord is installed and we aren't using Wayland.
if grep -q "com.discordapp.Discord" <<< $(flatpak list); then
if [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
/usr/bin/discover-overlay
if [[ ${AUTO_LAUNCH_DISCOVER_OVERLAY} == 1 ]]; then
if grep -q "com.discordapp.Discord" <<< $(flatpak list); then
if [[ "$XDG_SESSION_TYPE" != "wayland" ]]; then
/usr/bin/discover-overlay
fi
fi
fi

View File

@ -0,0 +1,2 @@
# Default disabled due to discover-overlay breaking mangohud in gamemode.
AUTO_LAUNCH_DISCOVER_OVERLAY=0