Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening flatpak Krita in flatpak Blender #149

Open
Sythelux opened this issue Aug 23, 2023 · 8 comments
Open

Opening flatpak Krita in flatpak Blender #149

Sythelux opened this issue Aug 23, 2023 · 8 comments

Comments

@Sythelux
Copy link

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.

@StandingPadAnimations
Copy link

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

@mbridon
Copy link
Collaborator

mbridon commented Aug 30, 2023

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 😉

@Sythelux
Copy link
Author

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.

@mbridon
Copy link
Collaborator

mbridon commented Aug 31, 2023

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 🤷

@ghost
Copy link

ghost commented Nov 15, 2023

@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

Footnotes

  1. https://github.com/flathub/org.godotengine.Godot/blob/master/README.md

@Sythelux
Copy link
Author

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.

@ghost
Copy link

ghost commented Nov 18, 2023

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

@Sythelux
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants