Skip to content

Commit

Permalink
feat: Allow MangoHUD config on all flatpaks automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 24, 2024
1 parent f66ef7b commit dd782c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system_files/desktop/shared/usr/bin/bazzite-flatpak-manager
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash

# SCRIPT VERSION
VER=16
VER=17
VER_FILE="/etc/bazzite/flatpak_manager_version"
VER_RAN=$(cat $VER_FILE)
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
Expand Down Expand Up @@ -60,6 +60,10 @@ flatpak override \
--socket=session-bus \
org.libreoffice.LibreOffice

# Allow MangoHUD config for Flatpaks
flatpak override \
--filesystem=xdg-config/Mangohud:ro

# Params needed for HW accelerated video on Nvidia (Ignoring hybrid systems)
if [[ $IMAGE_FLAVOR =~ "nvidia" ]] && [ $(grep -o "\-display" <<< $(lshw -C display) | wc -l) -le 1 ] && grep -q "vendor: NVIDIA Corporation" <<< $(lshw -C display); then
flatpak override \
Expand Down

0 comments on commit dd782c8

Please sign in to comment.