Thank you William .... a useful answer that does answer my questions ..... much appreciated.

David


On 10/23/2016 07:57 AM, William Ferguson wrote:
There are 2 luarc files, one for darktable and one for you. The darktable one, on my system (Ubuntu 16.04), is /usr/share/darktable/luarc. The one you want to use is the $HOME/.config/darktable/luarc for including any scripts that you want to use.

The lua scripts are located at https://github.com/darktable-org/lua-scripts. You can download individual scripts or the whole tree. Or, you can use git and clone the repository and then updating is a simple matter of changing to that directory and doing a git pull.

So, you could do:

mkdir $HOME/src
cd $HOME/src
git clone https://github.com/darktable-org/lua-scripts
ln -s $HOME/src/lua-scripts $HOME/.config/darktable/lua

then edit your luarc file and add require lines such as:

require "contrib/hugin"
require "contrib/gimp"
require "official/selection_to_pdf"

and so on...

Or, if you don't have git installed

mkdir $HOME/src
cd $HOME/src
curl -O -L https://github.com/darktable-org/lua-scripts/archive/master.zip
unzip master.zip
ln -s $HOME/src/lua-scripts $HOME/.config/darktable/lua

then edit the luarc and do the require as above.


Hope this helps,

Bill


On Sun, Oct 23, 2016 at 8:05 AM, Maurizio <mpagl...@gmail.com <mailto:mpagl...@gmail.com>> wrote:

    Ciao David,
    as a general Linux rule if you put something in your $HOME works
    for you only.
    /usr/share/ works for ALL users in your Linux box.
    You need to be root in order to write on /usr/share or any other
    system wide
    path.

    Maurizio

    In data domenica 23 ottobre 2016 07:57:26 CEST, Patrick Shanahan
    ha scritto:
    > * David Vincent-Jones <david...@gmail.com
    <mailto:david...@gmail.com>> [10-23-16 05:04]:
    > > There are 2 luarc locations on my system: /usr/share/luarc and
    > > HOME/.config/darktable/luarc
    >
    > rpm -qf /usr/share/luarc
    >
    > there is no /usr/share/luarc on any of my boxesl.
    >
    > > Should lua script requires be located in both of these files?
    >
    > guess that would depend on what was calling lua.  i believe dt
    *only* uses
    > ~/.config/darktable/luarc and from looking at the program definition
    > online, I don't even see luarc specified.
    >
    > but you could answer your own question by adding a requirement
    to first
    > one of your luarc's and not the other and calling the script.
    >
    > > Where do I find all of the location for all current dt lua
    scripts?
    >
    > darktable manual
    > google, github, duckduckgo, ...
    >
    > but that will only tell those advertised, not those on private
    systems.


    ____________________________________________________________________________
    darktable user mailing list
    to unsubscribe send a mail to
    darktable-user+unsubscr...@lists.darktable.org
    <mailto:darktable-user%2bunsubscr...@lists.darktable.org>



____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org


____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Reply via email to