Wine - syntax to run .exe from terminal

Questions about Wine on Linux
Locked
martinii
Newbie
Newbie
Posts: 1
Joined: Wed Jul 03, 2024 3:42 am

Wine - syntax to run .exe from terminal

Post by martinii »

Hi there!

I have KDE Neon linux and installed Wine flatpak. I want to run the windows program winbox64.exe. Now when I click on it in the file manager it works, but when I try to run it from terminal by executing the follwing command:

Code: Select all

flatpak run org.winehq.Wine /home/mz/Programy_Win/winbox64.exe
i gen an error:

Code: Select all

wine: failed to open "/home/mz/Programy_Win/winbox64.exe": c0000135
What's wrong? Please help.
martinii
Newbie
Newbie
Posts: 1
Joined: Wed Jul 03, 2024 3:42 am

Re: Wine - syntax to run .exe from terminal

Post by martinii »

Solution:

Code: Select all

flatpak run --filesystem=home org.winehq.Wine /home/mz/Programy_Win/winbox64.exe
Last edited by martinii on Thu Jul 04, 2024 1:58 am, edited 1 time in total.
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Wine - syntax to run .exe from terminal

Post by JoseskVolpe »

Since you using from Flatpak, for sandboxing, you may also like to adjust filesystem permissions for Wine instead of allowing access to your entire home. In this case allowing only /home/mz/Programy_Win with read-only access would work.
Locked