xfce4-weather-plugin 0.7.2 released

Yves-Alexis Perez corsac at debian.org
Mon Aug 3 14:58:32 CEST 2009


On mar, 2009-07-28 at 13:43 +0000, Colin Leroy wrote:
> Release notes for 0.7.2
> =======================
> 
> The weather.com logo (introduced in 0.6.3) was posing redistribution
> problems. The code has been reworked to download it from weather.com
> (and cache it in $XDG_CACHE_DIR/xfce4/weather-plugin/ the first time
> it's needed, instead of having it shipped. 

It seems that it creates the folder with weird permissions:

drw-r--r-- 2 corsac corsac 4,0K aoû  3 14:55 weather-plugin

and thus can't write to it:

err Failed to create file
'/home/corsac/.cache/xfce4/weather-plugin/weather_logo.jpg.1VRWXU':
Permission denied

I guess this should fix the problem:

diff --git a/panel-plugin/weather-summary.c
b/panel-plugin/weather-summary.c
index 6e41791..48bf44e 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -172,7 +172,7 @@ static gchar *get_logo_path (void)
 	gchar *dir = g_strconcat(g_get_user_cache_dir(), G_DIR_SEPARATOR_S,
 				"xfce4", G_DIR_SEPARATOR_S, "weather-plugin", NULL);
 
-	g_mkdir_with_parents(dir, 0644);
+	g_mkdir_with_parents(dir, 0755);
 	g_free(dir);
 
 	return g_strconcat(g_get_user_cache_dir(), G_DIR_SEPARATOR_S,


Cheers,

-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20090803/39d0cda6/attachment.pgp>


More information about the Xfce mailing list