darktable-org / lua-scripts

148 stars 108 forks source link

script_manager crash when starting darktable in darkroom mode #452

Closed wpferguson closed 5 months ago

wpferguson commented 5 months ago

When darktable is started in darkroom mode (i.e. open a single image) all scripts that register a library install an event trigger to load the GUI after darktable returns to lighttable mode.

If a library module was running and visible when darktable shuts down, script_manager tries to set it's visibility when darktable starts. If darktable is in darkroom mode, then the library doesn't exist yet so the visibility can't be set. This results in a crash in script_manager and the remaining scripts aren't restarted.