Skip to content

Installation of Lua scripts fails if darktable is installed from snap store #20074

@codecrusher64

Description

@codecrusher64

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

I tried migrating from an apt-based darktable installation to a snap-based installation on Ubuntu 25.10. After installing darktable, I also wanted to reinstall the lua scripts from the darktable lua-scripts repository. After pressing the "execute" button of the "lua scripts installer" module with the "install scripts" action, the following Lua logs are printed with enabled log debug messages:

LUA [script installer] running installer
LUA [script installer] setting script installer remind and dont_show to false 
LUA [script installer] checking for git
LUA [script installer] with command which git
LUA [script installer] got a match
LUA [script installer] git bin is /snap/darktable/394/usr/bin/git
LUA [script installer] require string is 'require "tools/script_manager"'
LUA [script installer] backuping up luarc file (if it exists)
LUA [script installer] lua scripts installing...
LUA [script installer] cmd input to os_execute is /snap/darktable/394/usr/bin/git clone https://github.com/darktable-org/lua-scripts.git /home/codecrusher64/snap/darktable/394/lua
LUA [script installer] command to os.execute is /snap/darktable/394/usr/bin/git clone https://github.com/darktable-org/lua-scripts.git /home/codecrusher64/snap/darktable/394/lua
Cloning into '/home/codecrusher64/snap/darktable/394/lua'...
git: 'remote-https' is not a git command. See 'git --help'.
LUA [script installer] command success: nil message: exit return code: 128
LUA [script installer] unable to clone lua-scripts.  See above messages for possible error

It seems to be a problem resulting from darktable running as a snap. Executing the command /snap/darktable/394/usr/bin/git clone ... on the command line is apparently working fine.

Can anyone confirm this error, or is it only a problem on my system? I'm not particularly familiar with snaps.

Steps to reproduce

  1. Install darktable from snap store
  2. Clean the configuration directory if it is not already clean
  3. Start darktable with option -d lua
  4. Enable "lua scripts installer log messages" in the Lua options
  5. Try to install Lua scripts as described above

Expected behavior

Command /snap/darktable/394/usr/bin/git clone ... should not return with an error code.

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

distro packaging

darktable version

5.4.0

What OS are you using?

Linux

What is the version of your OS?

Ubuntu 25.10

Describe your system

No response

Are you using OpenCL GPU in darktable?

None

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions