Page 1 of 1

Create application launcher in Linux

Posted: Thu Sep 19, 2013 4:00 pm
by gfurst
Hey there, this is just a little tip for the linux users, playing Pandora out there.
You can create your own application launcher to run Pandora from the dash( Gnome, Unity, and maybe others).
And the format is the following:

Code: Select all

#!/usr/bin/env xdg-open
[Desktop Entry]
	Name=Pandora Beta
	Exec="/path/to/Pandora Beta/Binaries/Pandora"
	Icon="/path/to/icon.png"
	Type=Application
	Categories=Game
And the where should it be( this will work for your user only):

Code: Select all

/home/user/.local/share/applications/pandora-launcher.desktop
This can be easily done with the commands:

Code: Select all

$ echo -e '#!/usr/bin/env xdg-open\n[Desktop Entry]\n\tName=Pandora Beta\n\tExec="/path/to/Pandora Beta/Binaries/Pandora"\n\tIcon="/path/to/icon.png"\n\tType=Application\n\tCategories=Game' > $HOME/.local/share/applications/pandora-launch.desktop
And make it runnable...

Code: Select all

$ chmod +x $HOME/.local/share/applications/pandora-launch.desktop
Don't forget to alter the path to the executable binary, within this command or after, with some editor.
Ah, it could possible be different if you're using something other than Gnome 3.
Here is the icon I'd use, just to have something...

Code: Select all

/usr/share/icons/gnome/48x48/status/security-high.png
Cheers!

Re: Create application launcher in Linux

Posted: Thu Sep 19, 2013 9:12 pm
by Delta66
Thanks, I'll try it soon.

I initially had some difficulty in finding a convenient way to launch Pandora under Linux (Kubuntu 4/13 for me).

Finally I simply made a BASH alias. Launching the game from a menu icon would be better though.

Re: Create application launcher in Linux

Posted: Fri Sep 20, 2013 2:58 am
by gfurst
Delta66 wrote: initially had some difficulty in finding a convenient way to launch Pandora under Linux (Kubuntu 4/13 for me).
Kubuntu is kfce, right? It could be that lighter desktop environments won't work with .desktop launchers.
For them, instead, I would only create a menu entry.

Re: Create application launcher in Linux

Posted: Fri Sep 20, 2013 9:46 am
by Delta66
gfurst wrote:[quote="Delta66"I initially had some difficulty in finding a convenient way to launch Pandora under Linux (Kubuntu 4/13 for me)
Kubuntu is kfce, right? It could be that lighter desktop environments won't work with .desktop launchers.
For them, instead, I would only create a menu entry.
I'm not sure of what you mean by 'kfce', I know of 'xfce' .
Since the last version kubuntu use lightdm instead of kdm previously for destop management.

Re: Create application launcher in Linux

Posted: Sat Sep 21, 2013 4:51 am
by gfurst
Oh sorry, I actually got things mixed up, what I've meant is that Kubuntu is KDE. Xubuntu is the with xfce.
Anyway, .desktop launchers should work on KDE. Did it work for you?