From d3cddde72fc6b44f236e60782fea2578cfeaae9c Mon Sep 17 00:00:00 2001 From: Tio TROM Date: Sat, 5 Aug 2023 20:25:03 +0200 Subject: [PATCH] better flatpak handling --- bin/periodic/fix-theming | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/bin/periodic/fix-theming b/bin/periodic/fix-theming index 956a393..7164577 100755 --- a/bin/periodic/fix-theming +++ b/bin/periodic/fix-theming @@ -7,16 +7,8 @@ sync_theme() { [ "$(xfconf-query -c xsettings -p /Xfce/SyncThemes)" != 'true' ] && xfconf-query -c xsettings -p /Xfce/SyncThemes -n -t bool -s true # Apply the current theme with gsettings gsettings set org.gnome.desktop.interface gtk-theme "$theme" - - # Apply the current theme for GTK apps in flatpak - - # Define the path to the flatpak override directory - flatpak_override_dir="$HOME/.local/share/flatpak/overrides" - # Create the directory if it doesn't exist - [ -d "$flatpak_override_dir" ] || mkdir -p "$flatpak_override_dir" || { echo 'failed creating directory!'; return 1; } - # Write the theme configuration to the global override file - echo "[Environment] -GTK_THEME=$theme" > "$flatpak_override_dir/global" + # Apply the current theme for the all the GTK flatpaks + flatpak override --user --env=GTK_THEME="$theme" } sync_font() {