From: dooglus Date: Sun, 9 Nov 2008 19:50:18 +0000 (+0000) Subject: libsynfig attempted to load modules from ~/.synfig/modules/ but didn't understand... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e47f6cf7054eede7664d7c353bdef5df97ef3919;p=synfig.git libsynfig attempted to load modules from ~/.synfig/modules/ but didn't understand what '~' meant. Now it uses the HOME environment variable instead. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2179 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/module.cpp b/synfig-core/trunk/src/synfig/module.cpp index 7d32db2..5d64003 100644 --- a/synfig-core/trunk/src/synfig/module.cpp +++ b/synfig-core/trunk/src/synfig/module.cpp @@ -69,7 +69,8 @@ Module::subsys_init(const String &prefix) } 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");