Register
It is currently Sun Apr 22, 2018 9:40 pm

create a desktop launcher for programs


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Fri Mar 16, 2018 4:54 pm   

Joined: Tue Apr 12, 2016 4:11 am
Posts: 54
hi all,

i want to create a desktop launcher for multiple programs and save it to everyones users desktop

i want to create a launcher panel with multiple icons for programs like firefox, chrome, libre office etc etc and when they click on the disired program it opens up the program

is this possible

thanks,

rob


Top
 Profile  
 PostPosted: Fri Mar 16, 2018 6:56 pm   

Joined: Tue Apr 12, 2016 4:11 am
Posts: 54
just thought of another really simple way

Code:
mkdir /applications


and in the aplications folder will be different scripts like

---------------------

Code:
#!/bin/bash

/usr/bin/firefox


------------------------------

and this will start up firefox when they click the firefox.sh

will this work?


Top
 Profile  
 PostPosted: Fri Mar 16, 2018 8:04 pm   

Joined: Tue Apr 12, 2016 4:11 am
Posts: 54
resolved!!!

i found the correct way to do it

make a file called "firefox.desktop" make note of .desktop NOT .sh and write this in the file

Code:
[Desktop Entry]
Name=Run Firefox
Comment=Run Firefox
Exec=/usr/bin/firefox
Icon=
Terminal=false
Type=Application


created a soft link for it on my end users desktop and now when they double click it in applications folder it opens firefox


Top
 Profile  
 PostPosted: Sat Mar 17, 2018 4:28 am   

Joined: Mon Oct 20, 2014 9:53 am
Posts: 574
Youmight want to have a look at https://www.freedesktop.org/wiki/Specifications/.

Almost every DesktopEnvironment follows these specs.
(of course the <somefile>.desktop is defined over there too)


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP