diff options
author | Luke from DC <[email protected]> | 2024-07-30 20:58:44 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-30 20:58:44 +0000 |
commit | d5a66388fe5f076939136671449de057aaa3b44f (patch) | |
tree | 291633fbe569bd738380c503a0ea6329cd4f2651 /src/file-manager/fm-desktop-icon-view.c | |
parent | 16a497d88f37c570a42b31a256d8e6b3cf9d8be5 (diff) | |
download | caja-d5a66388fe5f076939136671449de057aaa3b44f.tar.bz2 caja-d5a66388fe5f076939136671449de057aaa3b44f.tar.xz |
wayland background: use mate-appearance-properties if we can (#1771)
*In the wayland session, we now have mate-settings-daemon with GDK_BACKEND=x11
*We need it anyway to control theming in xwayland apps,so we can now use mate-appearance-properties to set the desktop background when it is running
Diffstat (limited to 'src/file-manager/fm-desktop-icon-view.c')
-rw-r--r-- | src/file-manager/fm-desktop-icon-view.c | 11 |
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 |