Script to launch KRITA with GMIC

Moderator: Forum moderators

Post Reply
don570
Posts: 688
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 117 times

Script to launch KRITA with GMIC

Post by don570 »

I wrote a script to launch the KRITA paint program (and GMIC plugins)

Download:
Script-krita-4.4.3alpha
https://drive.google.com/file/d/15kHGaS ... sp=sharing

Procedure:
1) download krita and gmic appimage and store in /opt
https://binary-factory.kde.org/job/Krit ... age_Build/

2) script can be stored anywhere and run it
(you should read the script and make changes to the krita and gmic file names if necessary)

3) gmic plugins will launch first and a couple of seconds later the krita splash screen will be seen

User avatar
mikeslr
Posts: 2965
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 922 times

Re: Script to launch KRITA with GMIC

Post by mikeslr »

Hi don570,

Glad that you found us. :thumbup: :D

Edit: I'm currently running Bionicpup64. As far as I can tell, the newer versions of krita (from 4 on) require qt5 libs; the one you linked to qt5 subversion 12. Obtaining them under Bionicpup64 is possible, but time-consuming. I don't really use Krita, but --on the theory I'll get around to learning this someday-- have the krita-3.3.3-x86_64.appimage in my /mnt/home/Pup-Apps* folder. It can be obtained here https://krita.org/en/item/krita-3-3-3/ and does not require the newer libs.

With the gmic appimage also on /mnt/home/Pup-Apps, editing a couple lines in the script as follows:
cd /mnt/home/Pup-Apps*
LD_LIBRARY_PATH= ./gmic_krita_qt-x86_64.appimage &
...
cd /mnt/home/Pup-Apps*
LD_LIBRARY_PATH= ./krita-3.3.3-x86_64.appimage

krita with gmic opens.

Naming the script krita-gmic, it can be located (and easily found) adjacent to the krita.appimage. On /mnt/home it uses no RAM when not opened, and perhaps can be used by other Puppies file-browsing and left-clicking the script. If desired, a pet can add it to Start menus or it can be dragged to desktops.

Thanks again. I had no idea how to get any krita.appimage to make use of the gmic.appimage.

* I keep all AppImages in a folder named Pup-Apps which makes them easier to find especially as I can add a bookmark to the folder in rox.

don570
Posts: 688
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 117 times

Re: Script to launch KRITA with GMIC

Post by don570 »

As far as I can tell, the newer versions of krita (from 4 on) require qt5 libs; the one you linked to qt5 subversion 12

I noticed that if I try to run version 4 or 5 of KRITA without the line
LD_LIBRARY_PATH= ./krita-4.4.3-alpha-1c6b2b4-x86_64.appimage

I get an error that I need recent qt5 to be installed.

Conclusion --> appimage contains qt5

don570
Posts: 688
Joined: Sat Nov 21, 2020 4:43 pm
Has thanked: 5 times
Been thanked: 117 times

Re: Script to launch KRITA with GMIC

Post by don570 »

The new version of KRITA version 5 is just out and can be downloaded
https://binary-factory.kde.org/job/Krit ... age_Build/

However I found that my script doesn't work with version 5 if version 4 is already
installed --> probably because resources are different . I see brush icons that are different.

I found a solution --->

Before running the script , delete the following...

the folder /root/.local/share/krita
and two files
/root/.local/share/krita.log
/root/.local/share/krita-sysinfo.log

This has to be done only once.
Then run the script and KRITA version 5 will run with gmic plugins

Post Reply

Return to “Tips & Tweaks”