| Summary: | Impossible to call kritarunner in AppImage and Snap | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Geekley <mrgeekley> |
| Component: | Scripting | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED LATER | ||
| Severity: | normal | CC: | halla |
| Priority: | NOR | ||
| Version First Reported In: | 5.2.11 | ||
| Target Milestone: | --- | ||
| Platform: | Appimage | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Geekley
2025-08-05 17:55:19 UTC
This bug also happens on Snap. `snap run krita.kritarunner --help` gives `error: cannot find app "kritarunner" in "krita"`. In fact, `snap info krita` only lists `krita` under commands, no `kritarunner`. Not even this works: `snap run --shell krita -c 'kritarunner "$@"' /bin/bash --help`, as kritarunner is not listed in bin. It does work for `krita_version`, though. At least the Flathub version works fine: `flatpak run --command=kritarunner org.kde.krita --help` Yes, well, this isn't supposed to work, I'm afraid. I don't think we can make it work, other than by making a second appimage that starts krita-runner. The kritarunner executable also is in a pretty bad state, so I'm not sure how much effort we should put into this. It's already explained how it can be made to work on AppImage in the link, you just use a custom AppRun, a very simple script that checks ARGV0 and passes the arguments to the right executable. It's already in the AppImage, it just needs to be accessible. And on Snap, just include it and expose the command. Both changes should be very simple to make. Please reconsider, because `kritarunner` is a workaround for the `krita` CLI bug that freezes when the GUI is open (bug #460631). That bug makes it unusable. This doesn't happen when using kritarunner CLI to convert images (yes, kritarunner is not perfect, but it's the only reliable way to do batch processing in Krita, and to support the KRA format in scripting or integrated from other apps). |