BashScripts.org
http://bashscripts.org/forum/

create a desktop launcher for programs
http://bashscripts.org/forum/viewtopic.php?f=16&t=2185
Page 1 of 1

Author:  robertkwild [ Fri Mar 16, 2018 4:54 pm ]
Post subject:  create a desktop launcher for programs

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

Author:  robertkwild [ Fri Mar 16, 2018 6:56 pm ]
Post subject:  Re: create a desktop launcher for programs

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?

Author:  robertkwild [ Fri Mar 16, 2018 8:04 pm ]
Post subject:  Re: create a desktop launcher for programs

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

Author:  uhelp [ Sat Mar 17, 2018 4:28 am ]
Post subject:  Re: create a desktop launcher for programs

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)

Page 1 of 1 All times are UTC - 6 hours
© 2000, 2002, 2005, 2007 phpBB Group • http://www.phpbb.com