Registered Member
|
Hi, is there a portable version of Krita or is there a way to make it portable? Currently Krita creates a setting folder in %AppData%, but I would like it to be in the Krita main folder, so I could run it from a USB stick.
Thanks |
KDE Developer
|
Yes there is, though I am seeing that it's not on the download page.
What you can do is go to the last release post, and get the zips: https://krita.org/item/updated-windows-builds/ |
Registered Member
|
The zip version is great, but it also stores the settings in the %AppData% folder, which is not really portable.
EDIT: I think I found a acceptable solution: create a kritaportable.bat file inside the krita foler with the following content:
By starting kritaportable.bat, it will create a AppData folder inside the Krita folder and store it's settings there. If you don't like the flashing of the cmd window, you can compile the bat to a exe with bat to exe converter. use the following code:
the Krita folder will look something like this If you trust my version of the compiled bat, you can download it from http://bit.ly/1xjB2dj |
KDE Developer
|
Thanks! I guess we could even put that setting in the krita.exe itself, but then I need to make a different build for the msi and zip. There's one more problem with the zip: if the msvc 2010 redistributable hasn't been installed, it won't run...
|
Registered Member
|
I assume you just can't redistribute the required dll's with the zip?
The hard way would be just to copy msvcp110.dll, msvcr110.dll from the C:\Windows\System32 folder to krita\bin folder. I tested it on a VM without the msvc 2010 redistributable and it worked fine. |
KDE Developer
|
Officially, that's not allowed, but I saw that Makehuman is doing exactly that as well.
|
Registered Member
|
Hi, with Krita 3.0, is it possible to manually set the configuration files folder?
With Krita 2.9 I could do it with: set KDEHOME=.... |
KDE Developer
|
I'm sure there is, but I actually don;t know what it is -- you'll need to do some investigation for that. I also heard that Qt5 is writing some stuff to the registry from people are making portable apps, but again, I haven't had time to investigate, so someone else needs to do that.
|
Registered Member
|
Actually Krita 3.0 saves settings to the APPDATA (brushes) and also the LOCALAPPDATA folder(kritarc).
I tried to set the APPDATA ja LOCALAPPDATA via batch file but that didn't work. I don't care so much about the registry entries, but my brushes and settings should be portable. |
Registered Member
|
Unfortunately I don't have the proper knowledge to investigate it further. But anyways, maybe it's time to make the portable version more user friendly and simpler. Right now only the program is portable, but the user settings are not, which makes it not so great for windows users. For example Blender looks for a "config" folder at startup and when it's present, then it will save/load user preferences to/from that folder. I think this kind of behavior would also work very well with Krita. Portability would be just a matter of creating a "config" folder in the Krita root directory. It's simple and everyone get's it. Everything else is made so simple in Krita, so why not the portability thing also .
|
KDE Developer
|
Unfortunately, Qt doesn't even allow us to set the location for the configuration file through an environment variable. Fixing that would take patching the kconfig framework, which I am not going to do -- I have no time to spend on this. Someone for whom "portable" versions are important will have to dig in and do the work. I'm fine with helping anyone who wants to hack this in, of course.
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]