Hi,
I’d like to pass GTK_IM_MODULE=simple to Darktable on Windows 11 to try to see if it solves Dead keys are not supported · Issue #18916 · darktable-org/darktable · GitHub
But I can’t wrap my head on how.
Hi,
I’d like to pass GTK_IM_MODULE=simple to Darktable on Windows 11 to try to see if it solves Dead keys are not supported · Issue #18916 · darktable-org/darktable · GitHub
But I can’t wrap my head on how.
Hi @Geobert, and welcome to the forum ![]()
I am not a windows user, but according to this superuser reply something like this should work:
C:\> cmd /V /C "set GTK_IM_MODULE=simple&& PATH_TO_DARKTABLE_BINARY_HERE"
Edit: I had forgotten set
Thanks for your answer!
went with
C:\> cmd /V /C "set GTK_IM_MODULE=simple&& PATH_TO_DARKTABLE_BINARY_HERE"
but either it doesn’t take it or it doesn’t solve my issue ^^’
If you want to set an environment variable, and then launch darktable, I’d probably do it in a batch file (.bat or .cmd – unless darktable.exe is on your path, replace darktable with the full path to the executable, or place the script in the same directory as the executable, and make sure you run it from that directory):
set GTK_IM_MODULE=simple
darktable
Thanks
I think it is similar to the command line above
I think there are 2 problems. One is a missing space:
C:\Users\kofa>set testvar=foo&& echo %testvar%
%testvar%
C:\Users\kofa>set testvar=foo && echo %testvar%
foo
The first command actually did not set testvar.
I think the 2nd issue is that the original command line, starts a new cmd.exe, which runs the SET, then exits, and then the 2nd command is executed independently:
C:\> cmd /V /C "set GTK_IM_MODULE=simple&& PATH_TO_DARKTABLE_BINARY_HERE"
To check, with/without the additional space:
C:\Users\kofa>cmd /V /C "set GTK_IM_MODULE=simple&& echo %GTK_IM_MODULE%
%GTK_IM_MODULE%
C:\Users\kofa>cmd /V /C "set GTK_IM_MODULE=simple && echo %GTK_IM_MODULE%
%GTK_IM_MODULE%
Then, there was a closing " missing (sorry: my fault), but adding it just breaks stuff even more:
C:\Users\kofa>set GTK_IM_MODULE=simple && echo %GTK_IM_MODULE%
%GTK_IM_MODULE%
C:\Users\kofa>set GTK_IM_MODULE=simple && echo %GTK_IM_MODULE%
simple
C:\Users\kofa>set GTK_IM_MODULE=simple && echo %GTK_IM_MODULE%
simple
C:\Users\kofa>set GTK_IM_MODULE=sample && echo %GTK_IM_MODULE%
simple
C:\Users\kofa>set GTK_IM_MODULE=sample && echo %GTK_IM_MODULE%
sample
C:\Users\kofa>set GTK_IM_MODULE=foo && echo %GTK_IM_MODULE%
sample
C:\Users\kofa>set GTK_IM_MODULE=bar && echo %GTK_IM_MODULE%
foo
C:\Users\kofa>set GTK_IM_MODULE=foo && echo %GTK_IM_MODULE%
bar
C:\Users\kofa>cmd /V /C "set GTK_IM_MODULE=foo && echo %GTK_IM_MODULE%"
foo
C:\Users\kofa>cmd /V /C "set GTK_IM_MODULE=bar && echo %GTK_IM_MODULE%"
foo
C:\Users\kofa>cmd /V /C "set GTK_IM_MODULE=bar && echo %GTK_IM_MODULE%"
foo
C:\Users\kofa>cmd /V /C "set GTK_IM_MODULE=bar && echo %GTK_IM_MODULE%"
foo
So, I’d go with the batch file. But I’m not a Windows scripting guru.
Thanks, I did try a bat file and same results ![]()
If you replace your darktable invocation with echo %GTK_IM_MODULE%, does it print the right value?
I don’t know GTK, but this setting seems to be a workaround for X issues; is it even relevant on Windows?
Yes the value is well set and no I’m not sure it was relevant, but hey, worth trying ^^ I think my dead key issue will wait the GTK4 migration…