You are not logged in.

#1 2024-06-24 19:08:22

Jeff_WuYo
Member
Registered: 2020-12-14
Posts: 67

Stop .exe launching via wine from double click in a file manager

Hi, I've install lutris and wine to play some games. However, I found out I can launch .exe by double click in a file manager, which I do not want. I've tried this guide, and read through all the reference, seems doesn't help. I'm using pcmanfm, maybe I could remove file association but I don't know how. There's also an old thread, but doesn't seems to help either.

Last edited by Jeff_WuYo (2024-06-24 19:08:56)

Offline

#2 2024-06-24 19:20:24

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Stop .exe launching via wine from double click in a file manager

in pcmanfm, Edit -> Preferences -> General -> Don't ask Options on launch executable files.

EDIT: Okay, sorry, that made it worse, actually.

Last edited by Awebb (2024-06-24 19:21:58)

Offline

#3 2024-06-25 00:15:48

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,852

Re: Stop .exe launching via wine from double click in a file manager

Look at https://wiki.archlinux.org/title/Wine#R … nu_entries and check those locations.

If that doesn't help, you may be bitten by kernel binfmt_misc support .

Systemd has systemd-binfmt.service that is always ran and can't be disabled .
It can be masked though .

after masking it,  reboot and check if that solves the issue.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2024-06-25 18:15:57

Jeff_WuYo
Member
Registered: 2020-12-14
Posts: 67

Re: Stop .exe launching via wine from double click in a file manager

Lone_Wolf wrote:

after masking it,  reboot and check if that solves the issue.

Still the same, doesn't seems there's any difference.

Offline

#5 2024-06-26 07:32:22

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,852

Re: Stop .exe launching via wine from double click in a file manager

So it's not systemwide settings .

Are you using pcmanfm-qt , pcmanfm-gtk3 or pcmanfm ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2024-06-26 08:21:52

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Stop .exe launching via wine from double click in a file manager

It's enough for me to stop systemd-binfmt.service to prevent extra/pcmanfm and thunar from launching exe files in wine.

Offline

#7 2024-06-26 10:32:55

Jeff_WuYo
Member
Registered: 2020-12-14
Posts: 67

Re: Stop .exe launching via wine from double click in a file manager

Lone_Wolf wrote:

Are you using pcmanfm-qt , pcmanfm-gtk3 or pcmanfm?

I've test pcmanfm and pcmanfm-gtk3, both yield the same problem.

Awebb wrote:

It's enough for me to stop systemd-binfmt.service to prevent extra/pcmanfm and thunar from launching exe files in wine.

Are you using a DE? I use qtile with sx (a xinit alternative).

Offline

#8 2024-06-26 10:39:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,852

Re: Stop .exe launching via wine from double click in a file manager

Jeff_WuYo wrote:

I've test pcmanfm and pcmanfm-gtk3, both yield the same problem.

Those are part of lxde and not very well maintained since pcmanfm (the creator) switched to qt / lxqt years ago.
Since you're not using lxde , try pcmanfm-qt .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2024-06-26 11:04:58

Jeff_WuYo
Member
Registered: 2020-12-14
Posts: 67

Re: Stop .exe launching via wine from double click in a file manager

Lone_Wolf wrote:

try pcmanfm-qt

Still the same tho. But, I end up set a file association to xarchiver, which I think won't execute exe automatically, in case I accidentally run something bad. It does looks prettier than gtk version tho.

Offline

#10 2024-06-26 12:34:50

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Stop .exe launching via wine from double click in a file manager

Can you verify, that systemd-binfmt isn't running? I've tried qtile with sx and exe files didn't run when clicked.

Offline

#11 2024-06-26 13:07:25

Jeff_WuYo
Member
Registered: 2020-12-14
Posts: 67

Re: Stop .exe launching via wine from double click in a file manager

Awebb wrote:

Can you verify, that systemd-binfmt isn't running?

yes,

systemctl status systemd-binfmt.service
○ systemd-binfmt.service
     Loaded: masked (Reason: Unit systemd-binfmt.service is masked.)
     Active: inactive (dead)

Offline

Board footer

Powered by FluxBB