Steam for Linux

Steam for Linux

Steam for Linux > Obecné diskuze > Detaily tématu
Sir Buzz Killington 9. dub. 2013 v 3.10 odp.
Adding minecraft to steam
Does someone know how to add minecraft to steam? I have my own command in my system for it, but I'd like to get it more tightly integrated.
< >
Zobrazeno 18 z 8 komentářů
Another Crawwww 9. dub. 2013 v 4.09 odp. 
Wonky for me since I can't seem to add .sh files, but it worked fine making a .desktop file.

Made a file named game.desktop:

[Desktop Entry]
Name=Add Game Test
Exec=/home/username/Gaming/Amnesia/Amnesia/Amnesia.bin64
Type=Application

When you 'ADD A GAME' and select the .desktop file, it shows up in the list as whatever you put in the 'Name=' line. So mine showed up as Add Game Test for me.

Launched Amnesia just fine for me. Just make sure you put the file location on the 'Exec=' line. If you don't know where it is you can just type this in terminal:

which nameofcommandhere
and it should spit out it's location.
Naposledy upravil Another Crawwww; 9. dub. 2013 v 4.13 odp.
Bucky <csgo[noun].com> 9. dub. 2013 v 4.39 odp. 
I think on the 'Exec=' line you're going to have to point to JDK, plus arguements that'll point it to your Minecraft launcher. Don't really know those off-hand..
Another Crawwww 9. dub. 2013 v 4.45 odp. 
With that post I was assuming his Minecraft command just points to a script or something in /usr/bin or w/e that already contains those args. Pointing that 'Exec=' to my Minecraft launched it just fine.
Naposledy upravil Another Crawwww; 9. dub. 2013 v 4.46 odp.
Sir Buzz Killington 9. dub. 2013 v 4.57 odp. 
I will just use my own script for launching minecraft. What I'm using is below:


java -Xmx4G -Xms4G -d64 -jar <PATH>/minecraft.jar
[Linux] frankweslar 🐧 10. dub. 2013 v 5.30 dop. 
Why did you use 4 gigabyte ram for minecraft?
Sir Buzz Killington 10. dub. 2013 v 11.14 dop. 
Because I can.
Elijah Delaney 11. dub. 2013 v 10.53 dop. 
Find yourself a nice png icon, then create Minecraft.desktop anywhere you like using a text editor (such as gedit):

[Desktop Entry]
Categories=Games
Comment[en_US]=A voxel building game with several game modes
Comment=A voxel building game with several game modes
Exec=/usr/bin/java -Xmx1024M -Xms512M -jar /path/to/minecraft/minecraft.jar
GenericName[en_US]=Minecraft
GenericName=Minecraft
Icon=/path/to/minecraft/minecraft.png
MimeType=
Name[en_US]=Minecraft
Name=Minecraft
Path=/path/to/minecraft/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-DBUS-ServiceName=
X-DBUS-StartupType=

or if (like me) you normally run openjdk but have sideloaded oracle's proprietary java to run certain applications, your exec line would look like:

Exec=/path/to/jre7/bin/java -Xmx1024M -Xms512M -cp '/path/to/minecraft/minecraft.jar' net.minecraft.LauncherFrame

Then import the .desktop file using Games > Add a Non-Steam Game to My Library...

You may have to manually edit the created shortcut in steam to make it work, sometimes it parses the lines weirdly and cuts out all the args/options in the exec line (right-click the minecraft shortcut, click properties.)
Naposledy upravil Elijah Delaney; 11. dub. 2013 v 11.00 dop.
Sir Buzz Killington 11. dub. 2013 v 11.40 dop. 
Nice!
< >
Zobrazeno 18 z 8 komentářů
Na stránku: 15 30 50

Steam for Linux > Obecné diskuze > Detaily tématu
Datum odeslání: 9. dub. 2013 v 3.10 odp.
Počet příspěvků: 8