This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Still no way to define another "settings" folder (rel.) path

Tags: None
(comma "," separated)
psteiner
Registered Member
Posts
24
Karma
0
I download the portable v4.0 of krita for Windows.

Unfortunately there is still no (easy) way to define a different, non-default folder for the settings.

If I prefer to run Krita later from USB flash drive the drive letter could change from computer to computer.
So I urgently need an option to define the settings folder as e.g. a subfolder of the installation directory.

Therefore I should be able to enter (mind the first dot "." as placeholder for the current installation directory):

./mysettings

as relative settings directory somewhere in krita.
This is not the case (as far as I can see).

Can this option be added in the next release?

Thank you
Peter
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Sorry, but this just is not important enough for me to spend actual time on. You could try to use a batch file that first sets the XDG paths then starts Krita, but I am not sure whether that works on Windows. See https://standards.freedesktop.org/based ... #variables. If it doesn't, someone who cares about this issue should start checking how Qt determines its standard directory locations on Windows and try to figure out how to change those, preferably without hacking Qt but through environment variables.
psteiner
Registered Member
Posts
24
Karma
0
Unfortunately setting environment variables for Krita under Windows 7 is very difficult or even impossible.

I tried for example the following script "runkrita.bat" which I put in the base directory (=the parent dir of Kritas "bin" dir) of Krita:
------------------------------
set XDG_DATA_HOME=.
set XDG_DATA_CONFIG=.\myconfig\
set XDG_DATA_DIRS=.\mydata\
.\bin\krita.exe
--------------------------------

What happens when I run this script?

All Krita configuration stuff is put in my HOME directory C:\Users\Peter\AppData\......
Even worse: it is spread over multiple locations inside my HOME directory:

C:\Users\Peter\AppData\Local\kritadisplayrc
C:\Users\Peter\AppData\Local\kritarc
C:\Users\Peter\AppData\Local\kriat\cache\
C:\Users\Peter\AppData\Roaming\krita\

So how should a working *.bat script for Krita look like on Windows system when I want to set environment variables?

Thank you
Peter
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Well, like I said, I was not sure that it would work. Apparently it doesn't, so you'll have to dig in the Qt code for QStandardPaths and see if it's already configurable, or whether you'd need to patch it.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]