Reply to topic

Where are settings stored in "portable" (!) version?

psteiner
Registered Member
Posts
16
Karma
0
When I download and install the "Installer" version of Krita then all settings are stored (on Wondow) in the following directory:

C:\Users\M\AppData\Local

Ok. But what if I download and install the "portable" version of krita?

Then the settings must be stored somewhere INSIDE the Krita base folder.

Where exactly?
The full "share" subfolder?

I want to copy them to the new version directory (when updating).

Peter
User avatar boudewijn
KDE Developer
Posts
4443
Karma
19
OS
By default, the settings are stored in the same place. If you want them stored in another place, you need to create a batch file or something like that that sets various XDG environment variables: https://standards.freedesktop.org/based ... #variables
psteiner
Registered Member
Posts
16
Karma
0
boudewijn wrote:By default, the settings are stored in the same place. If you want them stored in another place, you need to create a batch file or something like that that sets various XDG environment variables: https://standards.freedesktop.org/based ... #variables


Ok, I accept your answer.

But then Krita "portable" version is not really portable.
aleeksunder
Registered Member
Posts
4
Karma
0
boudewijn wrote:By default, the settings are stored in the same place. If you want them stored in another place, you need to create a batch file or something like that that sets various XDG environment variables: https://standards.freedesktop.org/based ... #variables

Hello!

I've tried to set various XDG variable on Windows 10 x64 with this batch
Code: Select all
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 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

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 variables... Nothing appears under that folders, not even a temp file :)

I'm using Krita v3.3.1 x64 portable, downloaded from official Krita site

Am I doing something wrong?
Stephen Leibowitz
Registered Member
Posts
7
Karma
0
There are at least two options for a portable version of Krita.

1. PortableApps.com has version 4.1.7 at https://portableapps.com/apps/graphics_ ... a-portable

2. The user should download the Windows Portable Krita (64-bit or 32-bit) Zip file, and extract to the portable drive. I have put together a batch file to run Krita. The batch file should be on the same drive as Krita, but does not have to be in the same folder. It makes portable two folders: AppData\Local and AppData\Roaming\Krita.

The configuration file kritarc has at least one setting that should be changed. The easiest way is from the Settings menu within Krita, the first time it is run. Configure Krita > G'Mic-Qt Integration will show a location, such as H:/krita-x64-4.1.7/bin/gmic_krita_qt.exe. Drive letter assignments can change for removable drives. The user should delete the explicit drive assignment. In this case, delete H: . Also, Krita defaults to putting a swap file on the system drive (usually C:) in AppData/Local/Temp. If the user wishes, that file’s location can be changed to the removable drive with Configure Krita > Performance.

Here is the batch file:

Code: Select all
cd /d  %~d0\krita-x64-4.1.7
:: This will set USERPROFILE to the Krita folder.
:: The program uses this as the parent for AppData\Local
:: and AppData\Roaming\Krita folders.
:: An alternative is to set USERPROFILE to a folder on the same drive,
:: but outside of the Krita folder.
set USERPROFILE=%CD%
:: Krita uses TMP as the autosave location.
set         TMP=%CD%\AppData\Local\krita
REM set USERPROFILE=%~d0\
REM set         TMP=%~d0\AppData\Local\krita
START "Krita" /D bin  krita.exe

 
Reply to topic

Bookmarks



Who is online

Registered users: atopp, Baidu [Spider], Bing [Bot], bobbywibowo, boudewijn, duns, Exabot [Bot], Google [Bot], Google Adsense [Bot], liderbug, manuelsanchez, TheBeheader, tymond, Yahoo [Bot]