I have Witcher 3 installed trough wine.
I use Gnome
It’s in custom prefix
Now every time I want to play I need (probably not, but I don’t know the different way) to repeat steps in terminal:
export WINEARCH=win64
export WINEPREFIX=~/Games/W3
wine ~/patch to Witcher executable
#!/bin/bash
export WINEARCH=win64
export WINEPREFIX=~/Games/W3
wine ~/patch to Witcher executable
and save that script as run_witcher.sh
run
chmod +x run_witcher.sh
and now at least you can run that script instead of typing that out. Can also double click it if it’s on desktop I think
I think there might be a better way to create a desktop shortcut where you can use an icon, which you can point at your new script as well. For me, I can right click the desktop, say “create a new launcher here”, and link it to the script. That’ll let you customise the icon too.
Save the file as whateverName.sh, make it executable, and you can now launch from terminal or right click probably, this script
For a .desktop file I guess it would be something like:
[Desktop Entry]
Name=Game Name Here
Comment=My Game description Here
Exec=WINEARCH=win64 WINEPREFIX=~/Games/W3 wine ~/pathToWitcherExecutable
Icon=iconNameHere
Terminal=false
Type=Application
Categories=Game;
I think you can have Terminal=true/false it shouldn’t break anything either case
Place the .desktop file in ~/.local/share/applications/ it should appear in your desktop menu now.
One better solution is to use Lutris, but this is a whole another guide by itself, check wikis/google/forum. Lutris is great to manage containerized Wine programs, each program in its prefix. You could simply ‘create’ an application in Lutris and configure it to use your existing prefix and files
Indeed it seems it is a properly created one, it may indicate that my guess was maybe not as good if you check the difference in the EXEC= line.
As you have GNOME, I remember (from 10 years ago, or something like that) that there was in the file manager some settings to execute or open executable file or ask what to do, when double clicking an executable file (script or whatever). Maybe check the settings then of your file manager.
//EDIT: did you try to launch it from the application menu? Don’t open the .desktop file from file manager, just find it in your application menu, after it is placed where I told you.
You are right. There is such option. It helped partially. When I choose to run the game the popup window appears with information that file can not be found
I copied desktop file from actual desktop to ~/.local/share/applications/
I have Witcher 3 “shortcut” in Gnome applications but when I run it something that looks like Windows file explorer is openes
I mean I use lutris to manage all mine, you can set custom prefixes and all that good stuff in the client, then just click the button to launch the app.