SF.net SVN: geany:[3426] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Sun Dec 28 13:40:27 UTC 2008
Revision: 3426
http://geany.svn.sourceforge.net/geany/?rev=3426&view=rev
Author: ntrel
Date: 2008-12-28 13:40:26 +0000 (Sun, 28 Dec 2008)
Log Message:
-----------
Fix creating a new configuration directory (oops).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-12-28 13:21:35 UTC (rev 3425)
+++ trunk/ChangeLog 2008-12-28 13:40:26 UTC (rev 3426)
@@ -7,6 +7,8 @@
Use Stash for plugin-related prefs.
Add geany_object "save-settings" signal (for core only).
Add stash_group_add_string_vector().
+ * src/main.c:
+ Fix creating a new configuration directory (oops).
2008-12-27 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2008-12-28 13:21:35 UTC (rev 3425)
+++ trunk/src/main.c 2008-12-28 13:40:26 UTC (rev 3426)
@@ -527,7 +527,6 @@
{
app->configdir = g_build_filename(g_get_user_config_dir(), "geany", NULL);
}
- setptr(app->configdir, tm_get_real_path(app->configdir));
#ifdef GEANY_DEBUG
if (generate_datafiles)
@@ -699,6 +698,10 @@
exit(0);
}
}
+ /* make configdir a real path */
+ if (g_file_test(app->configdir, G_FILE_TEST_EXISTS))
+ setptr(app->configdir, tm_get_real_path(app->configdir));
+
return mkdir_result;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list