Project

General

Profile

Feature #12063

Add lua path to darktablerc

Added by pass 712 4 months ago. Updated 3 months ago.

Status:
New
Priority:
Low
Category:
Lua
Target version:
-
Start date:
03/07/2018
Due date:
03/07/2018
% Done:

0%

Affected Version:
2.4.1
System:
Windows
bitness:
64-bit
hardware architecture:
amd64/x86

Description

As stated in several postings Lua scripts can't be executed if a special character (e.g. ä,ü,ö,...) is part of the filepath. At the moment (under windows) the lua directory is part of the user directory. This makes it difficult for users with the mentioned characters in their name to benefit from lua scripts.

A solution would be to place the lua-directory in a different location without special characters in the filepath and make it user-configurable via an entry in darktablerc.

History

#1 Updated by Peter M 3 months ago

I would like to have not only lua directory but the whole directory from user to be placed in configurable place. This way I can use my external drive with photos on different computers and have all my settings (eg. darktablerc, luarc files) with me.

#2 Updated by Tobias Ellinghaus 3 months ago

What whole directory? The config dir? If we let the user move that to another place, how would he configure darktable to look in a different place? The config file where that can be set isn't in the default place darktable would look at.

#3 Updated by Peter M 3 months ago

Make it possible to pass directory from where it should take configuration information.
Eg: darktable.exe -config f:\photos\config
This way I can take my external HD to any computer (or start from different computer user) and pass information where darktable should get presets, lua scripts, last import, film rolls etc. Doesn't matter if it's mine or my neighbors computer
If I start from my wife/son/grandpa windows account it gets information from "c:\users\wife\..." or "c:\users\son..." etc.
If I copy from my user directory then I overwrite their settings/information.

#4 Updated by Tobias Ellinghaus 3 months ago

$ darktable --help
usage: darktable [options] [IMG_1234.{RAW,..}|image_folder/]

options:

  --cachedir <user cache directory>
  --conf <key>=<value>
  --configdir <user config directory>
  -d {all,cache,camctl,camsupport,control,dev,fswatch,input,lighttable,
      lua, masks,memory,nan,opencl,perf,pwstorage,print,sql}
  --datadir <data directory>
  --disable-opencl
  -h, --help
  --library <library file>
  --localedir <locale directory>
  --luacmd <lua command>
  --moduledir <module directory>
  --noiseprofiles <noiseprofiles json file>
  -t <num openmp threads>
  --tmpdir <tmp directory>
  --version

Please notice the --configdir option. It is probably what you want. However, taking your library with you won't work reliably that way as the database stores absolute paths. You'd have to at least point darktable to the root of your image dir every time you move to another computer. Using the folder mode of the collect module and a right click on the tree root should deal with that in a few seconds.

Also available in: Atom PDF