Revision: 2179
http://synfig.svn.sourceforge.net/synfig/?rev=2179&view=rev
Author: dooglus
Date: 2008-11-09 19:50:18 +0000 (Sun, 09 Nov 2008)
Log Message:
-----------
libsynfig attempted to load modules from ~/.synfig/modules/ but didn't
understand what '~' meant. Now it uses the HOME environment variable instead.
Modified Paths:
--------------
synfig-core/trunk/src/synfig/module.cpp
Modified: synfig-core/trunk/src/synfig/module.cpp
===================================================================
--- synfig-core/trunk/src/synfig/module.cpp 2008-11-09 19:22:28 UTC (rev
2178)
+++ synfig-core/trunk/src/synfig/module.cpp 2008-11-09 19:50:18 UTC (rev
2179)
@@ -69,7 +69,8 @@
}
lt_dladdsearchdir(".");
- lt_dladdsearchdir("~/.synfig/modules");
+ if(getenv("HOME"))
+ lt_dladdsearchdir(strprintf("%s/.synfig/modules",
getenv("HOME")).c_str());
lt_dladdsearchdir((prefix+"/lib/synfig/modules").c_str());
#ifdef LIBDIR
lt_dladdsearchdir(LIBDIR"/synfig/modules");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl