godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Suggest method of using flatpak and blender

Open fire opened this issue 3 years ago • 3 comments

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.

  1. Go to /usr/local/bin
  2. Create a file named blender
#!/bin/bash
exec flatpak run org.blender.Blender "$@"
  1. Make the blender file executable
  2. Point the blender importer to /usr/local/bin/

URL to the documentation page (if already existing):

fire avatar Jul 21 '22 16:07 fire

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:

  1. Custom path if any is specified in the Editor Settings.
  2. blender in PATH (typically /usr/local/bin, then /usr/bin)
  3. flatpak in PATH with run org.blender.Blender CLI arguments
  4. 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.

Calinou avatar Jul 21 '22 16:07 Calinou

Want to move this to a godot engine godot repository issue?

fire avatar Jul 21 '22 16:07 fire

Want to move this to a godot engine godot repository issue?

I think you can open a separate proposal for this :slightly_smiling_face:

Calinou avatar Jul 21 '22 17:07 Calinou

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

GaryTheEnchanter avatar Jun 25 '23 02:06 GaryTheEnchanter