Steam for Linux

Steam for Linux

Not enough ratings
How to make Steam run games under WINE (with PlayOnLinux)
By GameBeast
This is a step-by-step tutorial on how to make Steam run non-Steam Windows games through WINE.
Installing the game
First you have to use PlayOnLinux[] to install the game. In most cases, you have to install the game manually and select a version of WINE. Installing a recognised game will mean that POL downloads the correct version for you.
Testing the game
After installing, you need to make sure the game works. If it doesn't work the first time, try using different versions of WINE - press the configure button, then select a different WINE version or add one.

When the game works, you are ready for the next stage.
Creating an install script
After installing a game, a shortcut to the game should appear on your desktop. If not, create one and POL will put it on your desktop. Right-click the shortcut and select 'Properties', and copy the command in the 'Command' box.

Now, create an empty text file called '*.sh' (where * is the name of the game) and put it where you want. For simplicity, I made a folder in my Documents folder called 'Launchers'.
Enter the line '#!/bin/bash' at the top, and on a new line, paste the command from the desktop shortcut.
It should look like this

Don't forget to mark it as an executable!
Making the shortcut and adding it to Steam
This part depends on your distro and programs you have installed. I use Linux Mint and have an editor for .desktop shortcuts, but for all Ubuntu-based distros this guide will use the text editor.
Open the terminal and type
sudo gedit /usr/share/applications/*.desktop
* is the name of the game.
In the editor, type the following
[Desktop Entry] Type=Application Name=* Comment=Launcher for * Exec=/path/to/launcher/*.sh Icon=/path/to/icon/*.png Terminal=false
* is the name of the game, and /path/to/launcher is where you have placed the launcher.
It should look like this:

Save the file, then close the terminal and the editor. Icons are optional, but I like them.

In Steam, click 'Add a game' and select 'Add a non-Steam game', then select your .desktop entry from the list.

Now you can press play and Steam will launch the BASH script, then BASH will launch POL and POL will launch your game. The Steam Overlay works in most cases too!

I've made many non-Steam Windows games run under Steam like this. With some modifications, you can also make Minecraft run too.
< >
GameBeast  [author] Dec 2, 2015 @ 12:58pm 
When I made this guide it worked fine but Valve changed something (I don't know what) and now it will just complain about Python (because PlayOnLinux is Python-based) instead. It will work if you can make the game work in just a vanilla Wine prefix though and update the .sh file to reflect that.
TheCherry Dec 2, 2015 @ 8:18am 
That dont work for me, I try it with Diablo 3 in Linux Mint, the sh and the desktop file work without steam nomaly. But If i press "play" in steam, its just do nothing. Is there any log file maybe to get the error?
GameBeast  [author] Feb 16, 2015 @ 11:31pm 
Perhaps try asking on the Steam forums/subreddit. I'm not sure if there's any way of contacting Valve other than through Steam Support, and we all know how bad that is :D
Angelo Feb 16, 2015 @ 9:38pm 
Yes, I did it with Wine and works but I have games with different wine profiles and different wine versions. How could I report this issue?
GameBeast  [author] Feb 15, 2015 @ 11:29pm 
Yeah, it seems Steam broke the ability to do this some time after I made this guide. Something about python not installed, even if you do have it installed. If you're really bothered, I guess you could complain to Valve about it, but I did see that launching games in regular Wine still works with this method.
Angelo Feb 15, 2015 @ 3:20pm 
Steam linux client can not launch Playonlinux as a non-Steam game! Is this guide ok??
Hilary Nov 22, 2014 @ 5:06pm 
Devin- only for blind, stupid retards. Everyone else can use Linux and understand that OS.
Devin Sep 14, 2014 @ 5:43pm 
Linux Sucks.
machredsch Jun 25, 2014 @ 5:37am 
Sure, everything is allowed on your personal machine.
I want this too. But I also want my modified files on another place to keep the original ones to be save. :diplomacy:
GameBeast  [author] Jun 25, 2014 @ 5:34am 
I guess you can do that to avoid some of the hastle. I just like having all my .desktop files where Linux puts them in the first place.