You are here

HOME Environment variable being ignored?

3 posts / 0 new
Last post
Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 4 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
HOME Environment variable being ignored?

As mentioned in Chris' testing thread, I'm having issues with Scribus 1.3.8 not recognizing the HOME environment variable. This is the only problem I have, and once it's fixed, I will be able to upload a working copy of Scribus 1.3.8

Please see my attached launcher.ini (appropriately renamed, of course)
Any help would be appreciated. I can give access to the full package if someone needs it.

[Launch]
ProgramExecutable=Scribus\Scribus.exe
SingleAppInstance=true

[Activate]
Registry=true
XML=true

[Environment]
PATH=%PAL:AppDir%\Ghostscript;%PATH%
HOME=%PAL:DataDir%\settings

[RegistryKeys]
Scribus_Portable_GPLGhostscript=HKLM\Software\GPL Ghostscript
Scribus_Trolltech=HKCU\Software\Trolltech

[QtKeysCleanup]
1=Qt Factory Cache 4.6\com.trolltech.Qt.QImageIOHandlerFactoryInterface:
2=Qt Plugin Cache 4.6.false

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\settings\Scribus\scribus135.rc
Find=%PAL:LastDrive%
Replace=%PAL:Drive%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\settings\Scribus\checkfonts.xml
Find=%PAL:LastDrive%
Replace=%PAL:Drive%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\settings\Scribus\scribus135.rc
Find=%PAL:LastPackagePartialDir%
Replace=%PAL:PackagePartialDir%

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\settings\Scribus\checkfonts.xml
Find=%PAL:LastPackagePartialDir%
Replace=%PAL:PackagePartialDir%

[FileWrite5]
Type=XML Attribute
File=%PAL:DataDir%\settings\Scribus\prefs135.xml
XPath=/application/user_preferences[@key="gui_language"]
Attribute=Value
Value=%PortableApps.comLocaleglibc%
Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Move for the moment

For the moment, I'd suggest that you just move the directory. Then we can see with the Scribus team what happened with that. Looking through the source code may help, too.

Edit: Scribus_Trolltech=HKCU\Software\Trolltech? Please don't do that. The only things you should need to worry about in there are the the caches - that's what [QtKeyCleanup] is for - and maybe the CustomColors key. Don't take the whole key at once.

Another edit: you can also try setting the XDG environment variables; they may do something - XDG_DATA_HOME and/or XDG_CONFIG_HOME.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Darkbee
Darkbee's picture
Offline
Last seen: 3 years 11 months ago
Joined: 2008-04-14 09:41
You can do it!

That'd be great! Scribus is one of those funny apps that you say to yourself, I'm never really gonna use it, but I've found that I do actually use it every now and again (and very handy it is too!). I think it's a great DTP app and should be a staple in any Portable office toolkit.

Log in or register to post comments