Index: ChangeLog =================================================================== --- ChangeLog (révision 29715) +++ ChangeLog (copie de travail) @@ -1,3 +1,12 @@ +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) + * plugins/thunar-wallpaper/twp-provider.c(twp_action_set_wallpaper), + plugins/thunar-wallpaper/twp-provider.c(check_cli_tools): + Don't pretend gconftool exists (if it exists it is just a symlink), + instead look for gconftool-2 + 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); @@ -264,12 +264,12 @@ twp_action_set_wallpaper (GtkAction *action, gpoin image_path_prop = g_strdup_printf("/desktop/gnome/background/picture_filename"); image_show_prop = g_strdup_printf("/desktop/gnome/background/draw_background"); - command = g_strdup_printf ("gconftool %s --set %s--type string", image_path_prop, file_name); + command = g_strdup_printf ("gconftool-2 %s --set %s--type string", image_path_prop, file_name); g_spawn_command_line_async (command, NULL); g_free (command); - command = g_strdup_printf ("gconftool %s --set true --type boolean", image_show_prop); + command = g_strdup_printf ("gconftool-2 %s --set true --type boolean", image_show_prop); g_spawn_command_line_async (command, NULL); g_free (command); @@ -298,7 +298,7 @@ check_cli_tools () g_free (program); } - program = g_find_program_in_path ("gconftool"); + program = g_find_program_in_path ("gconftool-2"); if (G_LIKELY (program != NULL)) { _has_gconftool = TRUE;