This patch fix the error message if a dir couldn't be created. It also
creates directories recursive, i didn't had ~/.local, so a dir creation
~/.local/share/applications/ did never work for me.
Greets,
Brian 'morlenxus' Miculcy
? e_utils.patch
Index: e_utils.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_utils.c,v
retrieving revision 1.71
diff -u -r1.71 e_utils.c
--- e_utils.c 22 May 2007 18:54:58 -0000 1.71
+++ e_utils.c 29 May 2007 16:28:49 -0000
@@ -888,11 +888,14 @@
EAPI int
e_util_dir_check(const char *dir)
{
+ char msg[PATH_MAX];
+
if (!ecore_file_exists(dir))
{
- if (!ecore_file_mkdir(dir))
+ if (!ecore_file_mkpath(dir))
{
- e_util_dialog_show("Error creating the directory: %s. Check that
you have correct permissions set.", dir);
+ snprintf (msg, sizeof (msg), "Failed to create directory: %s
.<br>Check that you have correct permissions set.", dir);
+ e_util_dialog_show("Error creating directory", msg);
return 0;
}
}
@@ -900,7 +903,8 @@
{
if (!ecore_file_is_dir(dir))
{
- e_util_dialog_show("Error creating the directory: %s. A file of
that name already exists.", dir);
+ snprintf (msg, sizeof (msg), "Failed to create directory: %s
.<br>A file of that name already exists.", dir);
+ e_util_dialog_show("Error creating directory", msg);
return 0;
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel