Wine keyboard map is wrong if .exe executed from a file manager

Hello everyone,

I have an .exe ( looping.exe ) that works well if invoked with wine or xdg-open in the command line, but if I open it from the dolphin file manager some keys are not mapped correctly. I use a belgian keyboard and for example the key i is mapped to 2,é,@ the h is 7,è and the %,ù,’ is y.

Did anyone face a similar issue and found a trick to solve it? Thanks in advance

EDIT : tried with another executable (notepad++) and it’s the same issue. I also tried to open it with nautilus, same issue.

Hello,

Linux is not Windows to launch .exe files the same way and expect the same behavior. Use proper launchers aka *.desktop files for your wine applications.

I tried that

[Desktop Entry]
Name=Looping
Comment=Looping
Exec=wine path/to/Looping.exe
Terminal=true
Type=Application
Icon=wine
Categories=Application;

With terminal set to true and false and in both case the problem persists.

Not quite the way to do it.
This should help
https://wiki.archlinux.org/index.php/wine

I followed the archwiki and created the appropriate files as described here.
And if it’s not the way to do it then would you mind explain me the right way?

I found something that works! In my .zshrc I noticed this line export LC_ALL=en_US.UTF-8 .

So I changed the .desktop entry accordingly :

[Desktop Entry]
Name=Looping
Comment=Looping
Exec=bash -c "export LC_ALL=en_US.UTF-8 && wine path/to/Looping.exe"
Terminal=false
Type=Application
Icon=wine
Categories=Wine;
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.