With DarkMode=1 crashes in Wine.

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Andy Solo
Junior Member
Junior Member
Posts: 29
Joined: 2019-03-15, 12:56 UTC

With DarkMode=1 crashes in Wine.

Post by *Andy Solo »

With DarkMode=1 crashes in Wine 8.
With DarkMode=0 or DarkMode=2 it works in Wine 8.

OS version: Astra Linux 1.7 x86-64
Total Commander 10.52 64 bit (2022-10-26)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: With DarkMode=1 crashes in Wine.

Post by *ghisler(Author) »

It works with Wine 8.5 on Fedora 37, so it's probably a bug in Wine 8.

You can try simulating Windows 7 or 8 instead of 10, so Total Commander doesn't try to call the special Windows 10 dark mode functions (they are probably not implemented in Wine 8). You can do this with the tool winecfg.
Author of Total Commander
https://www.ghisler.com
s4t
Junior Member
Junior Member
Posts: 36
Joined: 2014-03-04, 01:06 UTC

Re: With DarkMode=1 crashes in Wine.

Post by *s4t »

Christian,
Can you also please look at "stuck" of Alt key in TC in Linux Mint or Ubuntu under Wine? Something is wrong with TC under these varieties of Linux. Periodically you need to hit Alt few times to clear this stucking. Or possibly offer an option to remove the functionality when you keep Alt and click on the folder or file to see "properties for the resource" - 0.001% of people even know that, let alone to use this property for the resource

Downgrade to Win8 is probably not always an acceptable solution for some software
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: With DarkMode=1 crashes in Wine.

Post by *ghisler(Author) »

I never got the stuck Alt key on Linux. Are you using a virtual machine? It can happen when you leave the virtual machine with Alt pressed and later return to the virtual machine with Alt not pressed. Anyway, when it happens again, please report what you did just before it started happening.
Author of Total Commander
https://www.ghisler.com
s4t
Junior Member
Junior Member
Posts: 36
Joined: 2014-03-04, 01:06 UTC

Re: With DarkMode=1 crashes in Wine.

Post by *s4t »

Christian,
We discussed that in the other recent Linux thread ("TC works on Linux"). This happens for sure in Ubuntu and Mint, the two most used Linux versions. You do not have to do anything for this to start. Initially all looks ok but in an few minutes of work ALT stucks and to clear it you have to push alt few times and normal work continues. Very annoying. You do that 100 times a day. The other brutal annoyance happens when you try to start Editor with F4 and do not know that Alt is already stacked. Then when you push F4 the Alt+F4 kills the TC :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: With DarkMode=1 crashes in Wine.

Post by *ghisler(Author) »

I have never seen this on a real machine, only in a virtual machine, but this was a few years back (bug seems to be fixed in VirtualBox).
Author of Total Commander
https://www.ghisler.com
s4t
Junior Member
Junior Member
Posts: 36
Joined: 2014-03-04, 01:06 UTC

Re: With DarkMode=1 crashes in Wine.

Post by *s4t »

ghisler(Author) wrote: 2023-05-12, 13:52 UTC I have never seen this on a real machine, only in a virtual machine, but this was a few years back (bug seems to be fixed in VirtualBox).
This problem is in real Linux machines.

Of course the reason could be in wine, like "in vino veritas", but only you who would determine that

As a temporal solution I suggest to make optional alt+mouse or alt+cursor directory property no one uses because when alt gets stuck anything you push on keyboard or click shows this directory property list. May be this will help
Last edited by white on 2023-05-14, 15:06 UTC, edited 1 time in total.
Reason: Enabled BBCode
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: With DarkMode=1 crashes in Wine.

Post by *white »

Moderator message from: white » 2023-05-14, 15:07 UTC

s4t wrote: 2023-05-14, 14:45 UTC
Enabled BBCode so the quote is shown properly.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: With DarkMode=1 crashes in Wine.

Post by *ghisler(Author) »

It could be, here someone had this problem in 2021 when using Alt+Tab:
https://www.winehq.org/pipermail/wine-bugs/2021-April/554257.html
Author of Total Commander
https://www.ghisler.com
s4t
Junior Member
Junior Member
Posts: 36
Joined: 2014-03-04, 01:06 UTC

Re: With DarkMode=1 crashes in Wine.

Post by *s4t »

Yes, this could be feature/bug of all Debian installations (Ubuntu and Mint i tried) but things are they as most used Linux distro will never change. By the way other Commanders are not affected by this feature/bug.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: With DarkMode=1 crashes in Wine.

Post by *ghisler(Author) »

Have you tried my workaround?
You can try simulating Windows 7 or 8 instead of 10, so Total Commander doesn't try to call the special Windows 10 dark mode functions (they are probably not implemented in Wine)
TC sees that Linux reports itself as Windows 10, tries to call Windows 10 functions, but they don't work. What am I supposed to do when the functions just crash?
Author of Total Commander
https://www.ghisler.com
Post Reply