You are here

Krita: where to put custom python plugins?

3 posts / 0 new
Last post
cinaeco
Offline
Last seen: 1 year 10 months ago
Joined: 2023-01-19 02:37
Krita: where to put custom python plugins?

First off, discoverning portableapps has been fantastic! Thanks to all who make this possible!

I have been placing my custom python plugins into KritaPortable\App\Krita64\share\krita\pykrita. This has worked well until I recently ran a newer portableapps installer to upgrade Krita, and this removed my plugins.

I then tried to place them in KritaPortable\Data\krita\pykrita, but my plugins have disappeared from there as well. It seems that this folder gets emptied automatically or something?

My main question is: Does any one know where I should place custom python plugins, so that they can avoid automatic deletion?

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 31 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Manager

Is there some reason you're not using the built in plugin manager as the Krita documentation states? Everything you install through there should be properly portablized and preserved. According to the Krita docs, the path KritaPortable\App\Krita64\share\krita\pykrita is only for Krita's pre-installed plugins and is equivalent to C:\Program Files\Krita\share\krita\pykrita

If you're doing things manually for some reason, anything you'd normally place within C:\Users\Username\AppData\Roaming\Krita can be placed within KritaPortable\Data\krita and anything you'd normally place within C:\Users\Username\AppData\Local\Krita can be placed within KritaPortable\Data\kritalocal. You must do this while Krita Portable is closed. It will then be moved back and forth to the appropriate location while Krita is running.

I don't see any documentation on doing this manually in Krita's docs. If you could please point me to some, I can make sure the launcher handles it.

Sometimes, the impossible can become possible, if you're awesome!

cinaeco
Offline
Last seen: 1 year 10 months ago
Joined: 2023-01-19 02:37
Krita: where to put custom python plugins?

Thanks for the intro to the paths! Makes sense. I was not installing plugins through Krita itself as these are ones I wrote myself which are not packaged up as zip files.

My original mistake was thinking that KritaPortable\App\Krita64\share\krita\pykrita was in fact Roaming\Krita\pykrita. I have now seen how KritaPortable\Data\krita\pykrita gets copied over to Roaming on launch.

My second mistake (causing code in KritaPortable\Data\krita\pykrita to disappear) was leaving that folder open in either Windows explorer or in a Linux subsystem terminal window when starting KritaPortable. This was preventing the folder from being moved properly and then causing the folder to be wiped when KritaPortable was closed.

If I remember to navigate away from that folder after editing plugins, that should keep my KritaPortable\Data\krita\pykrita stable.

Log in or register to post comments