Skip to content

Commit

Permalink
Merge pull request #136 from ledif/flatpak_qt_qpa_platformtheme
Browse files Browse the repository at this point in the history
feat: overrides for Qt/GTK theming in flatpaks
  • Loading branch information
inffy authored Jan 19, 2025
2 parents e4006c4 + ba7ec95 commit 045de44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system_files/shared/usr/libexec/ublue-user-setup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash

# SCRIPT VERSION
USER_SETUP_VER=7
USER_SETUP_VER=8
USER_SETUP_VER_FILE="${XDG_DATA_HOME:-$HOME/.local/share}/ublue/user-setup"
USER_SETUP_VER_RAN=$(cat "$USER_SETUP_VER_FILE")
VEN_ID="$(cat /sys/devices/virtual/dmi/id/chassis_vendor)"
Expand Down Expand Up @@ -57,6 +57,10 @@ if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
fi
fi

# More consistent Qt/GTK themes for Flatpaks
flatpak override --env=QT_QPA_PLATFORMTHEME=kde
flatpak override --filesystem=xdg-config/gtk-4.0:ro

# Handle privileged tasks
pkexec /usr/libexec/ublue-privileged-user-setup

Expand Down

0 comments on commit 045de44

Please sign in to comment.