libsynfig attempted to load modules from ~/.synfig/modules/ but didn't understand...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 9 Nov 2008 19:50:18 +0000 (19:50 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 9 Nov 2008 19:50:18 +0000 (19:50 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2179 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/module.cpp

index 7d32db2..5d64003 100644 (file)
@@ -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");