jjacky avatar jjacky committed d94f190 Merge

merging latest

Comments (0)

Files changed (2)

 
 #define _UNUSED_            __attribute__ ((unused)) 
 
-#define KALU_VERSION       "0.1.1"
+#define KALU_VERSION       "0.1.2"
 #define KALU_TAG            "Keeping Arch Linux Up-to-date"
 
 #define MAX_PATH            255
     char conffile[MAX_PATH];
     GError *error = NULL;
     snprintf (conffile, MAX_PATH - 1, "%s/.config/kalu/kalu.conf", g_get_home_dir ());
+    if (!ensure_path (conffile))
+    {
+        s = strrchr (conffile, '/');
+        *s = '\0';
+        s = g_strdup_printf ("%s cannot be created or is not a folder", conffile);
+        show_error ("Unable to write configuration file", s,
+                    GTK_WINDOW (window));
+        g_free (s);
+        goto clean_on_error;
+    }
     if (!g_file_set_contents (conffile, conf, -1, &error))
     {
         show_error ("Unable to write configuration file", error->message,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.