Workaround for darktable popping windows on windows

A user has come up with a way to get rid of the popping windows caused when using Lua on Windows. The link here is to the issue, Prevent terminal windows from popping up during start on Windows · Issue #17193 · darktable-org/darktable · GitHub.

For those who don’t want to read it, it consists of creating a shortcut with the following as the command

C:\Windows\System32\cmd.exe /S /C "start /B "DarkTable CMD" "C:\Program Files\darktable\bin\darktable.exe" > "C:\Users\jeanr\Documents\Darktable\log.txt" 2>&1"

You need to change jeanr to your username. After you create the shortcut, you can go to properties and change the icon to darktable.

What this does is open 1 window and then start darktable. darktable then uses the already open window to access the operating system, therefore no popping windows.

3 Likes

Untested, as currently no Windows machine, but a strategically placed %USERPROFILE% might make this copy-pastable.

1 Like

Maybe I am weird, but having those windows briefly popping up just seems to remind me to be patient and DT is still loading. When I see the last one for LUA scripts pop up I know I am ready to go.

2 Likes

:rofl:

1 Like

Currently a PR to solve the issue of the cmd-window-lightshow is open. It has not seen a lot of activity but IMHO deserves some more windows testing. If you don’t want to self-compile you can use the installer I compiled via github from the PRs branch.

@Terry @europlatus @priort

1 Like

Thanks for sharing…I will try to find some time tonight to check it out…

1 Like

Thanks @mino and thanks for the installer. I’m downloading it as we speak.

While annoying, these cmd popups were never my biggest issue. I’m more bothered by darktable stealing focus. It seems even worse on the dev builds I’ve been using recently.

1 Like

I’ve left comments on Github but also thought I’d mention it here:
the PR #22070 fixes both the command window popups and the focus stealing issue plaguing Windows. Great news!

1 Like