Skip to content

Load user luarc files for users that have their own lua-scripts - #707

Open
tenderlove wants to merge 1 commit into
darktable-org:masterfrom
tenderlove:load-luarc
Open

Load user luarc files for users that have their own lua-scripts#707
tenderlove wants to merge 1 commit into
darktable-org:masterfrom
tenderlove:load-luarc

Conversation

@tenderlove

Copy link
Copy Markdown

I have the lua-scripts repo cloned in $HOME/.config/darktable/lua

Since darktable a4003bc
(darktable-org/darktable@a4003bc) (PR darktable-org/darktable#20848) removed the direct invocation of the user luarc from lua/init.c, that responsibility moved to script_manager. But it was only called in the if system_based case, so my luarc was never loaded.

This commit pulls the user luarc script loading up so that it runs in both modes.

I have the lua-scripts repo cloned in $HOME/.config/darktable/lua

Since darktable a4003bc
(darktable-org/darktable@a4003bc)
(PR darktable-org/darktable#20848) removed the direct invocation of
the user luarc from lua/init.c, that responsibility moved to
script_manager.  But it was only called in the `if system_based` case,
so my luarc was never loaded.

This commit pulls the user luarc script loading up so that it runs in
both modes.
@wpferguson

Copy link
Copy Markdown
Member

Did you test to make sure the change didn't introduce any regressions?

@tenderlove

Copy link
Copy Markdown
Author

I haven't run any tests in this repo, but this fixes my setup. I'll learn how to run the tests in here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants