Patch: environment variable override for prefs directory for PortableApps.com edition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Jon A. Cruz |
Bug Description
I'm the developer of Inkscape Portable at PortableApps.com (see http://
I'd like it if a command-line argument or something could get put in for Inkscape 0.47 so that we can override the settings location, and thus improve the Inkscape Portable experience. In the mean time, I think I'll be needing to switch to moving back and forth, which is suboptimal.
Thanks in advance for helping us to help both of us! ;-)
tags: |
added: packaging removed: patch portable request |
I've looked into it more thoroughly, and I'd like to offer a patch:
In inkscape.cpp:
1380 gchar *
1381 profile_path(const char *filename)
1382 {
1383 static const gchar *prefdir = NULL;
1384 if (!prefdir) {
In between lines 1383 and 1384, insert two more lines:
if (!prefdir) g_getenv( "INKSCAPE_ PORTABLE_ PROFILE_ DIR"));
prefdir = g_strdup(
I believe that this should work fine. That way if the environment variable INKSCAPE_ PORTABLE_ PROFILE_ DIR was set, it'd use that (note that it won't stick "Inkscape" onto the end of it - intentional)
Sorry I can't format it as a proper patch, I don't have the tools to do that at the moment.