Acly / krita-ai-tools

Krita plugin which adds selection tools to mask objects with a single click, or by drawing a bounding box.
GNU General Public License v3.0
398 stars 20 forks source link

What's the reason it cannot simply be installed as a plugin on Linux? #12

Closed Lord-Vlad closed 8 months ago

Lord-Vlad commented 8 months ago

I like the convenience of having Krita installed through the package manager of my choice, that's why I am curious about what's the reason behind the patching. For Windows, it seems to work just fine like any other plugin.

Acly commented 8 months ago

No reason why it shouldn't work. You just need to put the files in the right places.

For Windows it's easy because all installations are isolated and have the same structure, which is replicated in the .zip.

For Linux you have some people using AppImage, some Flatpak, and then various distros are free to distribute the files in different places. Krita from package managers is often a bit outdated, and the plugin only works for the latest version, hence the instructions focus on the AppImage.

Lord-Vlad commented 8 months ago

Thanks for the answer.

ShadwDrgn commented 8 months ago

if I were to do it via package manager how would the directory structure work? I've installed other plugins by simply copying the entire zip to a folder in pykrita. Is that what I'd do here? this seems to have a lib folder which i'm not familiar with. I'm not seeing a lib folder anywhere in .local/share/krita which seems to be where my krita files are and is where I installed krita-ai-diffusion as an example.

The krita official documentation seems to think there should be a .desktop file in the zip but i don't see one: https://docs.krita.org/en/user_manual/python_scripting/install_custom_python_plugin.html

EDIT: For those curious about this. it looks like this isn't a normal krita plugin and so you have to use the system dirs to copy the files. arch just puts them in /usr/share/ and /usr/lib respectively so sadly you'll have to do this as root, but it does work :)

Acly commented 8 months ago

Yep this is not a python plugin, you can't add new tools that way. And Krita doesn't support loading native plugins from the user folder.