Prelim: Perhaps launch the xfconf commands from within the X session

This commit is contained in:
Rory Fewell
2025-07-07 23:27:21 +01:00
parent 121ad446d5
commit 1abbd3c135
2 changed files with 17 additions and 14 deletions

View File

@@ -4,10 +4,6 @@
#
xfsettingsd --disable-wm-check --replace --daemon
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_font --set "Tahoma Bold 8"
# Launch setup
#
dbus-run-session -- wsetupx

View File

@@ -105,18 +105,25 @@ int main(
return EXIT_FAILURE;
}
// Fire up xfwm4
// Fire up WM and stuff
//
if (
!S_OPTION_TEST &&
!wintc_launch_command(
"xfwm4 --compositor=on",
&error
)
)
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_font --set \"Tahoma Bold 8\"",
"xfwm4 --compositor=on"
};
if (!S_OPTION_TEST)
{
wintc_log_error_and_clear(&error);
return EXIT_FAILURE;
for (guint i = 0; i < G_N_ELEMENTS(s_startup); i++)
{
if (!wintc_launch_command(s_startup[i], &error))
{
wintc_log_error_and_clear(&error);
return EXIT_FAILURE;
}
}
}
// Set up styling