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

Is there a portable version?

Tags: None
(comma "," separated)
sinilill
Registered Member
Posts
6
Karma
0

Is there a portable version?

Thu Mar 12, 2015 10:14 pm
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
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Is there a portable version?

Thu Mar 12, 2015 10:38 pm
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/
sinilill
Registered Member
Posts
6
Karma
0

Re: Is there a portable version?

Thu Mar 12, 2015 11:35 pm
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:
Code: Select all
set KDEHOME=%~dp0AppData
start /d %~dp0bin krita.exe

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:
Code: Select all
set KDEHOME=AppData
start bin\krita.exe

the Krita folder will look something like this
Image

If you trust my version of the compiled bat, you can download it from http://bit.ly/1xjB2dj
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Is there a portable version?

Fri Mar 13, 2015 11:41 am
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...
sinilill
Registered Member
Posts
6
Karma
0

Re: Is there a portable version?

Mon Mar 16, 2015 10:49 am
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.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Is there a portable version?

Mon Mar 16, 2015 11:11 am
Officially, that's not allowed, but I saw that Makehuman is doing exactly that as well.
sinilill
Registered Member
Posts
6
Karma
0

Re: Is there a portable version?

Sat Jun 04, 2016 1:47 pm
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=....
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Is there a portable version?

Sat Jun 04, 2016 1:53 pm
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.
sinilill
Registered Member
Posts
6
Karma
0

Re: Is there a portable version?

Sat Jun 04, 2016 3:56 pm
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.
sinilill
Registered Member
Posts
6
Karma
0

Re: Is there a portable version?

Mon Jun 06, 2016 10:36 am
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 o) .
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Is there a portable version?

Mon Jun 06, 2016 11:23 am
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.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]