When the checkbox “Allow this file to run as a program” is checked double clicking on an exe file will execute it using wine. I dont like this behavior since I want to avoid accidentally running exe programs when not intending to.
Can this behavior somehow be disabled without having to check for the setting in every one of my files? (some/all? unfortunately download with the checkbox set already so I would have to check every time)
My configured default action for exe files is usually my archive manager.
… what else - beside wine
- can execute .exe files?
(it’s a rather rhetorical question)
I’d guess that disassociating wine
from .exe
extensions would be rather counterproductive.
Theres also this for a heavier hand;
https://wiki.archlinux.org/title/Wine#Remove_Wine_file_bindings
a “open with” window, or an archive manager as it used to be a few years back
and I removed wine from all my file associations already, doesnt help anymore since its not actually an “open with” prompt but just the “execute” option which seems to decide what to use in the background somehow
with focus on the second line …
But I may have misunderstood what your intention was/is.
What @cscs suggested/linked to might be what you want.
unfortunately doesnt seem to help, if i read it correctly it just tells pacman to not install those files. the first one doesnt exist in the first place for me and removing the other still executes it using wine somehow, could it be a thunar thing more than an xfce thing?
Section 4.15
those files are (for you) already present.
NoExtract
won’t help - the files are already there.
You could implement the rule for the future - and delete the currently already present files …
Correct.
It is also implied that those files should be removed if they already exist (Wine is already installed).
Quite odd, as it is included with the wine
package.
$ pacman -Fl wine | grep wine.conf
wine usr/lib/binfmt.d/wine.conf
Also odd I would think as its the … wine desktop file.
Unsure, but coupled with the other comments I might guess at something like ‘Context Menu’ items, custom plugin, or something similar?
Sorry, I have not daily-driven xfce in quite some time and am not a wine expert either.
Looking around I did see systemd-binfmt.service
which purports to “Set Up Additional Binary Formats” so maybe that is a lead?
Under certain conditions systemd-binfmt.service
will be started automatically.
We might check if its running…
systemctl status systemd-binfmt.service
And if we really want to make sure it does not run we could mask it.
systemctl mask systemd-binfmt.service
Do I know if this is desirable over some other approach? No.
Am I sure it will work? No.
But it may be worth a try.
Thanks, stopping that service seems to have done the trick, the “execute” option is still there but it doesnt seem to open wine anymore, thanks for looking into it, I will try if I notice any problems by it being masked and if not just leave it like this
turns out i was just too dumb to type, forgot to add the / at the beginning of /usr/lib/binfmt.d/ …
anyways, even with that file removed the outcome is the same, so I’m gonna stick with masking the service
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.