Matoking / protontricks

A wrapper that does winetricks things for Proton enabled games, requires Winetricks.
GNU General Public License v3.0
1.65k stars 37 forks source link

Winetricks not finding wine after selecting a game #352

Open J-Lamiroy opened 2 days ago

J-Lamiroy commented 2 days ago

Describe the bug After trying to select a game on the GUI, I recieve a winetricks error box displaying "WINE is /usr/bin/wine, which is neither on the path nor an executable file"

To Reproduce Steps to reproduce the behavior:

  1. Run protontricks --gui
  2. Select a game
  3. Above winetricks error is displayed.

Expected behavior The winetricks menu should open.

System (please complete the following information):

Matoking commented 1 day ago

If you run env | grep WINE in your terminal, does it print anything?

I'm guessing you have set WINE somewhere (e.g. ~/.bashrc, ~/.profile), which is being inherited by the Flatpak process. The problem is that /usr/bin/wine does not exist inside the Flatpak sandbox and Protontricks/Winetricks can't find it.

J-Lamiroy commented 1 day ago

I get this

~$ env | grep WINE
WINE=/usr/bin/wine
WINETRICKS=/usr/bin/winetricks

So it does seem it's just out of reach for Flatpak. How can I change it to something it can access?

Matoking commented 1 day ago

There's no need, unless you specifically need to run a specific version of Winetricks. The Protontricks Flatpak has a built-in Winetricks executable.

Otherwise, you could try installing Winetricks under your home directory somewhere. You might need to add a filesystem permission using Flatseal first, though.

J-Lamiroy commented 1 day ago

Would you mind giving me a quick rundown on how to do this? I'm quite new to linux, and I'm not sure how to go about it.