You are not logged in.
Pages: 1
I am a major noob, I hear you get a lot of those around here
I looked around the forum for a while without finding this topic so I made an account just to ask the question. I also didn't really know which forum to post it in, so I apologize if someone ends up having to move it.
Well I created a text file with the following code and then made it executable using the "properties" tool in the drop-down menu:
"
cd /home/tux
java -cp minecraft.jar net.minecraft.LauncherFrame
"
As you may have noticed, it is just a simple shortcut to open Minecraft. As it is an executable, the icon has an image of a shiny silver gear, but I want to change it to the Minecraft icon.
I've opened up the icon viewer and found where all the icon .png's are stored. I also noticed that the executable is considered to be an "application-x-executable" mimetype (if you could also explain what a mimetype is that would be useful
)
So I suppose my question is, is there some way to make a custom mimetype, assign my desired icon to it, and then change my shortcut to that mimetype?
-OR-
Am I missing something entirely and this is all really very simple?
Offline
Go to /usr/share/applications directory where you will find <app-name>.desktop files. You can use leafpad to edit any one of them to see how various apps are invoked from desktop. I would create a minecraft.desktop (or call it something else if it already exists or rename the existing one to some other name) and invoke your script under 'exec' line and specify your own image in 'icon' field. Hope this makes sense. Also make sure you create this file with appropriate permissions - ie set the permissions as in the case with other .desktop files.
Offline
Thank you, that did actually make a lot of sense. I love the intimate feeling that you end up having with your personal linux OS, especially a barebones redist like Slitaz because you put so much work into every detail. Thanks a lot.
Offline
Alright, so I have my Minecraft.desktop file created, but where do I go from here? Have I just essentially just created an application? And how do I open this application?
Offline
Oh nevermind, I just made a typo. I was able to open it from the usr/share/applications directory. Thanks for being so helpful.
Offline
.desktop files in /usr/share/applications should produce an incon in the Applications menu, in the left down corner of the screen.
check where your minecraft icon is or the syntax of your file.
Offline
Pages: 1
[ Generated in 0.018 seconds, 8 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]