summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc618cb)
raw | patch | inline | side by side (parent: cc618cb)
author | Chris Morgan <chris.morganiser@gmail.com> | |
Sun, 20 Dec 2009 15:32:30 +0000 (21:02 +0530) | ||
committer | Chris Morgan <chris.morganiser@gmail.com> | |
Sun, 20 Dec 2009 15:32:30 +0000 (21:02 +0530) |
src/main.cpp | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index f96d99e11e29a8dcffd545131f6364b397ab4ad8..75e882e998672a27bebcbd7087b3f2205c75424d 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
// TODO these should use xxxW() calls explicitly and convert UTF-16 <--> UTF-8
SetCurrentDirectory(homedir.c_str());
_win32_set_inkscape_env(homedir);
- RegistryTool rt;
- rt.setPathInfo();
+ // Don't touch the registry (works fine without it) for Inkscape Portable
+ gchar const *val = g_getenv("INKSCAPE_PORTABLE_PROFILE_DIR");
+ if (!val) {
+ RegistryTool rt;
+ rt.setPathInfo();
+ }
#endif
// Prevents errors like "Unable to wrap GdkPixbuf..." (in nr-filter-image.cpp for example)