Index: plugins/thunar-wallpaper/twp-provider.c =================================================================== --- plugins/thunar-wallpaper/twp-provider.c (revision 29701) +++ plugins/thunar-wallpaper/twp-provider.c (working copy) @@ -204,6 +204,7 @@ gchar *image_style_prop; gchar *file_uri; gchar *file_name = NULL; + gchar *quoted_file_name = NULL; gchar *hostname = NULL; gchar *command; @@ -211,6 +212,7 @@ { file_uri = thunarx_file_info_get_uri (file_info); file_name = g_filename_from_uri (file_uri, &hostname, NULL); + quoted_file_name = g_shell_quote (file_name); if (hostname != NULL) { g_free (hostname); @@ -243,7 +245,7 @@ image_show_prop = g_strdup_printf("/backdrop/screen%d/monitor%d/image-show", screen_nr, monitor_nr); image_style_prop = g_strdup_printf("/backdrop/screen%d/monitor%d/image-style", screen_nr, monitor_nr); - command = g_strdup_printf ("xfconf-query -c xfce4-desktop -p %s --create -t string -s %s", image_path_prop, file_name); + command = g_strdup_printf ("xfconf-query -c xfce4-desktop -p %s --create -t string -s %s", image_path_prop, quoted_file_name); g_spawn_command_line_async (command, NULL); g_free (command); @@ -282,6 +284,7 @@ break; } + g_free(quoted_file_name); g_free(file_name); }