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

Portable Krita setting directory can't be changed on Windows

Tags: None
(comma "," separated)
aleeksunder
Registered Member
Posts
4
Karma
0
This is continuation of previous topic here:
viewtopic.php?f=139&t=142371

I've done some more stuff with new version of Krita on Windows 10. Now I've tested 3.3.2.1-x64. And still no appropriate results. Krita simply ignores all of the XDG environment variables I've set before launch

I've tried to set various XDG variable on Windows 10 x64 with this batch
Code: Select all
SET "KDEHOME=C:/temp/profile/kdehome"
SET "KDEDIRS=C:/temp/profile/kdedirs"
SET "KDEDIR=C:/temp/profile/kdedir"
SET "XDG_DATA_DIRS=C:/temp/profile/share"
SET "XDG_DATA_HOME=C:/temp/profile/data"
SET "XDG_CONFIG_HOME=C:/temp/profile/config"
SET "XDG_CONFIG_DIRS=C:/temp/profile/configs"
SET "XDG_CACHE_HOME=C:/temp/profile/cache"
::
START "Krita" /D "C:\Krita\bin" krita.exe

I've tried various combinations of forward slash and back slash in paths... But still Krita stores it's setting under "%AppData%\krita" folder and "%LocalAppData%\kritarc" file and completely ignores preset XDG_DATA_HOME , XDG_CONFIG_HOME , XDG_CONFIG_DIRS , XDG_CACHE_HOME, XDG_DATA_DIRS, KDEHOME, KDEDIR, KDEDIRS variables... Nothing appears under that folders, not even a temp file :)

And I've found that variable XDG_DATA_DIRS always sets internally by Krita and even if I change it and move the folder before launch XDG_DATA_DIRS always points to "C:/Krita/bin/../share" after launch... Maybe this is due to the following code: https://github.com/KDE/krita/blob/adeea ... c#L157-L16
Maybe I'm wrong, since my coding skill not strong enough to clearly undestand that code, but it seems to me that there is not even a try to read this variable from environment. This is not critical for portable version, since "share" folder contains template for new profiles, but XDG_DATA_DIRS variable is the only one which I've found in source code related to windows
aleeksunder
Registered Member
Posts
4
Karma
0
Guys, any chance to get some support on this?
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Sorry, no, not on Boxing day. And anyway, in general, I'm just too busy working on things that I actually care about; people who need this have to come up with patches.
aleeksunder
Registered Member
Posts
4
Karma
0
You mean if I will implement it myself there will be a chance to merge this part into actual source?
Of course I will give a try... but...
Anyway it will be a real tough challenge for me :) I'm not a programmer, and I just want to ask if I will fail... 90% fail chance ))) Can you just put this request on a roadmap, since I think it is real demand for portable software... and not very hard to implement for real programmer


Bookmarks



Who is online

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