Index: ChangeLog =================================================================== --- ChangeLog (révision 29715) +++ ChangeLog (copie de travail) @@ -1,3 +1,8 @@ +2009-04-07 Mike Massonnet + + * plugins/thunar-wallpaper/twp-provider.c(twp_action_set_wallpaper): + Escape spaces in filename (bug #5056) and set style auto (bug #5057) + 2009-03-12 Jannis Pohlmann * thunar-vfs/thunar-vfs-io-jobs.c: Apply umask properly when Index: plugins/thunar-wallpaper/twp-provider.c =================================================================== --- plugins/thunar-wallpaper/twp-provider.c (révision 29715) +++ plugins/thunar-wallpaper/twp-provider.c (copie de travail) @@ -1,6 +1,6 @@ /* * Copyright (c) 2008 Stephan Arts - * Copyright (c) 2008 Mike Massonnet + * Copyright (c) 2008-2009 Mike Massonnet * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -243,7 +243,7 @@ twp_action_set_wallpaper (GtkAction *action, gpoin 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, file_name); g_spawn_command_line_async (command, NULL); g_free (command); @@ -251,7 +251,7 @@ twp_action_set_wallpaper (GtkAction *action, gpoin g_spawn_command_line_async (command, NULL); g_free (command); - command = g_strdup_printf ("xfconf-query -c xfce4-desktop -p %s --create -t int -s 4", image_style_prop); + command = g_strdup_printf ("xfconf-query -c xfce4-desktop -p %s --create -t int -s 0", image_style_prop); g_spawn_command_line_async (command, NULL); g_free (command);