Open Sythelux opened 10 months ago
That's an issue with Flatpaks. It's the same if you use the Flatpak version of KeePassXC and the Flatpak version of FireFox at the same time. Flatpaks aren't allowed to call binaries from another Flatpak (likely related to runtime), but they are allowed to call binaries from the host
You can absolutely call another flatpak from inside a flatpak, you just have to call it differently, not directly a path to the executable.
Instead, you need to execute flatpak run org.kde.Krita
for example, if that's the right app ID for Krita 😉
the command would be flatpak run org.kde.krita
, but when I set it to preferences -> ... -> Image Editor, blender still throws an error:
Image editor could not be launched, ensure that the path in User Preferences > File is valid, and Blender has rights to launch it
I suppose it is a general thing in flatpak, but that doesn't mean, that it is an issue, which should be addressed at some point either in blender flatpak or as general flatpak implementation.
IIRC a portal is needed for a flatpak app to launch another app, but I'm not sure how this works.
Also, since I don't maintain the Blender flatpak anymore, I'm not the right person to help you, my opinion has just as much value as that of a random bystander 🤷
@Sythelux can you try:
flatpak-spawn --host flatpak run org.kde.krita "$@"
I can't test this myself currently but I use something similar for Godot and Blender flatpaks. ^1
Thank you. This sadly only results in blender not complaining anymore (that is, if you make a custom executable like suggested in the godot guide) but it won't actually spawn a process outside.
Although the Godot Documentation also said, that they had to add special permissions to be able to run commands. Maybe this helps the maintainer of this repo to add support.
Although the Godot Documentation also said, that they had to add special permissions
Okay, try
flatpak override --user --talk-name=org.freedesktop.Flatpak org.blender.Blender
Although the Godot Documentation also said, that they had to add special permissions
Okay, try
flatpak override --user --talk-name=org.freedesktop.Flatpak org.blender.Blender
I really appreciate your help and this all make sense, but it is still not running. I wish I could more feedback.
How is it supposed to work, when I have Krita installed as flatpak and Blender installed as a flatpak, that I can set krita in the preferences as Image editor.
I see other users having a similar issue: https://www.reddit.com/r/blenderhelp/comments/q4in6m/how_to_add_flatpak_krita_to_blender_file_paths/ and the solution being "use the appimage instead"
I guess this could be a general problem with flatpaks.