summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2024-03-25 00:51:03 -0400
committerlukefromdc <[email protected]>2024-04-04 00:52:20 -0400
commita1fb0c070049427c384d9df795f561ccf502cf41 (patch)
tree291633fbe569bd738380c503a0ea6329cd4f2651
parent16a497d88f37c570a42b31a256d8e6b3cf9d8be5 (diff)
downloadcaja-wayland-bg-x11-style.tar.bz2
caja-wayland-bg-x11-style.tar.xz
wayland background: use mate-appearance-properties if we canwayland-bg-x11-style
*In the wayland session, we now have mate-settings-daemon with GDK_BACKEND=x11 *We need it to control theming in xwayland apps *So we can now use mate-appearance-properties to set the desktop background when it is running
-rw-r--r--src/file-manager/fm-desktop-icon-view.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c
index 0d0c034a..954c26de 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -717,7 +717,16 @@ action_change_background_callback (GtkAction *action,
/*Get the new background and switch to it in wayland*/
if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default()))
{
- wayland_bg_dialog_new ();
+ /*We can use the appearance capplet with some versions of mate-control-center
+ *in which the appearance capplet works in wayland
+ *Try it first, and fall back to the standalone dialog if it fails
+ */
+ GError *error = NULL;
+
+ g_spawn_command_line_async ("mate-appearance-properties --show-page=background",
+ &error);
+ if (error != NULL)
+ wayland_bg_dialog_new ();
}
else
#endif