From b7348d7540c5ea9422db905d53440adacb75af09 Mon Sep 17 00:00:00 2001 From: Rory Fewell Date: Mon, 7 Jul 2025 23:55:39 +0100 Subject: [PATCH] Prelim: Explicitly set gtk settings stuff ourselves --- base/setup/guiphase/src/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/base/setup/guiphase/src/main.c b/base/setup/guiphase/src/main.c index 59542aa..85ead07 100644 --- a/base/setup/guiphase/src/main.c +++ b/base/setup/guiphase/src/main.c @@ -101,14 +101,12 @@ int main( // Fire up WM and stuff // static const gchar* s_startup[] = { - "xfconf-query --channel xsettings --property /Net/ThemeName --set \"Windows Classic style\"", "xfconf-query --channel xfwm4 --property /general/theme --set \"Windows Classic style\"", "xfconf-query --channel xfwm4 --property /general/title_alignment --set left", "xfconf-query --channel xfwm4 --property /general/title_font --set \"Tahoma Bold 8\"", "xfconf-query --channel xfwm4 --property /general/show_dock_shadow --set false", "xfconf-query --channel xfwm4 --property /general/show_frame_shadow --set false", "xfconf-query --channel xfwm4 --property /general/show_popup_shadow --set false", - "xfconf-query --channel xsettings --property /Gtk/CursorThemeName --set standard-with-shadow", }; if (!S_OPTION_TEST) @@ -139,6 +137,16 @@ int main( return EXIT_FAILURE; } + // Set GtkSettings, because xsettings never seems to work -_- + // + GtkSettings* settings = gtk_settings_get_default(); + + g_object_set( + settings, + "gtk-theme-name", "Windows Classic style", + "gtk-cursor-theme-name", "standard-with-shadow", + NULL + ); // Set up styling //