[Goodies-commits] r5721 - xfce4-power-manager/trunk/src

Ali Abdallah aliov at xfce.org
Mon Oct 20 17:10:00 CEST 2008


Author: aliov
Date: 2008-10-20 15:10:00 +0000 (Mon, 20 Oct 2008)
New Revision: 5721

Modified:
   xfce4-power-manager/trunk/src/xfpm-main.c
Log:
Create autostart directory if doesn't exists

Modified: xfce4-power-manager/trunk/src/xfpm-main.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-main.c	2008-10-20 14:42:46 UTC (rev 5720)
+++ xfce4-power-manager/trunk/src/xfpm-main.c	2008-10-20 15:10:00 UTC (rev 5721)
@@ -38,7 +38,9 @@
 #endif
 
 #include <gtk/gtk.h>
+
 #include <glib.h>
+#include <glib/gstdio.h>
 
 #include <libxfcegui4/libxfcegui4.h>
 
@@ -94,12 +96,7 @@
     
     if ( !g_file_test(file,G_FILE_TEST_IS_DIR) )
     {
-        xfpm_popup_message(_("Xfce4 Power Manager"),
-                           _("Unable to read .config/autostart in your home directory, autostart option may not work"),
-                           GTK_MESSAGE_INFO);
-        g_warning("Home directory doesn't contains .config/autostart subdirs\n");
-        g_free(file);
-        return;
+        g_mkdir_with_parents(file,0700);
     }
     
     file = g_strdup_printf("%s/xfce4-power-manager.desktop",file);




More information about the Goodies-commits mailing list