godot-docs
godot-docs copied to clipboard
Suggest method of using flatpak and blender
Your Godot version: Godot Engine 4 https://github.com/godotengine/godot/commit/d6b1dd4854be3b31673e7634d3b88499f3bd2b60
Issue description:
Provide documentation how to use flatpak Blender 3.2.1 with the Blender importer.
- Go to
/usr/local/bin - Create a file named blender
#!/bin/bash
exec flatpak run org.blender.Blender "$@"
- Make the blender file executable
- Point the blender importer to /usr/local/bin/
URL to the documentation page (if already existing):
On Linux, I think Godot itself should try to run a Flatpak version of Blender automatically if no native version is found at the default path. This way, you don't have to create a shell script manually and move it to a location only writable with root permissions.
Basically, Godot should try the following paths in order:
- Custom path if any is specified in the Editor Settings.
blenderinPATH(typically/usr/local/bin, then/usr/bin)flatpakinPATHwithrun org.blender.BlenderCLI arguments- Display error message if none of them can be run, and point to the Editor Settings to configure the path.
We could do the same for a Snap version of Blender (after Flatpak). I don't know the syntax to use for it though.
Want to move this to a godot engine godot repository issue?
Want to move this to a godot engine godot repository issue?
I think you can open a separate proposal for this :slightly_smiling_face:
I was also using flatpak Godot (version 4.0.3.stable) and I had to use a slightly different script to get it to work. It's documented here: https://github.com/flathub/org.godotengine.Godot#bash-script-assuming-blender-is-installed-from-flathub