Stopping "popping" windows with darktable on windows

If you create a desktop shortcut with the command C:\Windows\System32\cmd.exe /S /C "start /B "darktable CMD" "C:\Program Files\darktable\bin\darktable.exe" > "%USERPROFILE%\Documents\Darktable\log.txt" 2>&1" and use that to launch darktable you shouldn’t have popping windows anymore.

In Prevent terminal windows from popping up during start on Windows · Issue #17193 · darktable-org/darktable · GitHub, toward the end of the discussion there are other ways to start darktable using vbscript, powershell, etc that also prevents the popping windows.

I thought this was going to be included in the build, but it seems somewhere between discussion and release it got dropped.

Works like a charm and DT pops right up but there is a terminal window left open when you do this at least on my end and some people might find that just as annoying to have the window and the taskbar icon around and if you close it then you exit DT…

Maybe I did something wrong…

When I use a .vbs launcher, there is no extra window. And I use a link to run the .vbs as described in the thread linked above.

I introduced some config variables as I run dt with some changes to the run parameters…maybe I introduced an issue there…

I tried with cmd as well as with powershell, same observation.

What happens if you append a command separator (&) and then append exit to the command.

Thanks for the tip I will try next time I use DT…

EDIT:I tried to add it a couple of ways but it didn’t seem to work … I just added ampersand and a space and exit and I tried with quotes which may be wrong…

1 Like