darktable-org / darktable-org/darktable

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

Open
#20,074 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
Dominant language
C
Stars
13.1k
Forks
1.4k
Avg merge
22h 14m
Merged PRs (30d)
198

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Lua scripts installer module and reproduce the failure using darktable with -d lua and installer log messages enabled. Compare the snap-installed git clone command with the command that works from the terminal; done means installing the lua-scripts repository from the snap build no longer returns exit code 128.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, lua
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.