Create application launcher in Linux

Moderator: Pandora Moderators

Post Reply
gfurst
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 43
Joined: Thu Jul 18, 2013 2:46 pm

Create application launcher in Linux

Post 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!
Delta66
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 392
Joined: Sat Jan 28, 2012 12:45 pm

Re: Create application launcher in Linux

Post 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.
gfurst
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 43
Joined: Thu Jul 18, 2013 2:46 pm

Re: Create application launcher in Linux

Post 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.
Last edited by gfurst on Sat Sep 21, 2013 4:50 am, edited 1 time in total.
Delta66
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 392
Joined: Sat Jan 28, 2012 12:45 pm

Re: Create application launcher in Linux

Post 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.
Last edited by Delta66 on Sat Sep 21, 2013 11:47 am, edited 1 time in total.
gfurst
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 43
Joined: Thu Jul 18, 2013 2:46 pm

Re: Create application launcher in Linux

Post 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?
Post Reply

Return to “Pandora : Public Beta”