View Issue Details

IDProjectCategoryView StatusLast Update
0006069ScribusOS-Win32public2014-07-21 06:13
Reporterstrank Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status feedbackResolutionopen 
OSWindowsOS VersionXP 
Product Version1.3.4 
Summary0006069: Respect HOME variable or allow customisation of preference location
DescriptionIn 1.3.3.x Scribus preferences were stored in QDir::homeDirPath()+"/.scribus".
In 1.3.4 they moved to the Windows special folder %APPDATA%+"/Scribus".

QDir::homeDirPath() used $HOME if it was defined, also on Windows.
The new code (in ScPaths::getApplicationDataDir) does not.
This means that the preferences location cannot be customised (apart from redefining the whole %USERDIR%, including a lot of junk).

I strongly prefer using $HOME when defined (and using ".scribus" instead of "Scribus") but I know that the new behaviour is more Windows-idiomatic.

To allow customisation nevertheless, I suggest:
- either check for %HOME% before %APPDATA% and use it (%HOME%/.scribus) if defined
- or check for a new environment variable and use it directly (e.g. $SCRIBUSHOME which could be set to e.g. D:\whereever\.scribus)

cheers,
stefan
Steps To ReproduceN/A
Additional InformationEarlier bugs related to Windows Paths:
- 0005301: Relocate preferences directory
- 0003945: correct some minor win32 specific path things
TagsNo tags attached.
Patch

Relationships

related to 0005301 closedjghali Relocate preferences directory 
related to 0003945 closedjghali correct some minor win32 specific path things 
has duplicate 0008198 closedjghali It's impossible to change the location of the scribus user profile 

Activities

jghali

2007-08-05 19:55

administrator   ~0016949

Won't correct than in 1.3.3.x. In qt4 the priority has changed anywway and HOME is the very last on the list. Practically on Windows systems supported by scribus (ie NT based), qt4 retrieve home path using the GetUserProfileDirectoryW() function which is far better than using any environment variable where only a limite range of character is supported.

slythfox

2007-08-30 04:56

reporter   ~0017216

I'm not sure I understand all this at a level high level, but somehow it would be nice if the preference location was customizable in some form... I'm not the only one, I suppose.

Kunda

2014-07-21 06:13

updater   ~0032878

(7 years later) jghali, what's the verdict on this?

Issue History

Date Modified Username Field Change
2007-08-05 16:51 strank New Issue
2007-08-05 19:55 jghali Note Added: 0016949
2007-08-30 04:56 slythfox Note Added: 0017216
2007-09-27 19:21 christoph_s Relationship added child of 0005693
2007-09-27 19:27 jghali Relationship deleted child of 0005693
2009-06-23 08:11 jghali Relationship added has duplicate 0008198
2014-07-21 06:11 Kunda Relationship added related to 0005301
2014-07-21 06:11 Kunda Relationship added related to 0003945
2014-07-21 06:13 Kunda Note Added: 0032878
2014-07-21 06:13 Kunda Status new => feedback
2014-10-08 18:38 Kunda Category Win32 => OS-Win32