[Xfce4-commits] <exo:master> Fix saving of desktop files in local dir.
Nick Schermer
noreply at xfce.org
Fri Apr 13 23:28:01 CEST 2012
Updating branch refs/heads/master
to 5ee135131e1e5318349306f2876494814c47ce89 (commit)
from bfaf90fcf17fd8f26c3b7c63623ed6f61bb8ef28 (commit)
commit 5ee135131e1e5318349306f2876494814c47ce89
Author: Nick Schermer <nick at xfce.org>
Date: Fri Apr 13 23:26:20 2012 +0200
Fix saving of desktop files in local dir.
exo-desktop-item-edit/main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/exo-desktop-item-edit/main.c b/exo-desktop-item-edit/main.c
index 9bccbac..62ba7f8 100644
--- a/exo-desktop-item-edit/main.c
+++ b/exo-desktop-item-edit/main.c
@@ -555,7 +555,8 @@ main (int argc, char **argv)
/* destroy the chooser */
gtk_widget_destroy (chooser);
}
- else if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED))
+ else if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)
+ || g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_ACCES))
{
if (mode == EXO_DIE_EDITOR_MODE_DIRECTORY)
mode_dir = "desktop-directories/";
More information about the Xfce4-commits
mailing list