LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to create desktop shortcut for any exe file for all users exsting in the system (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-create-desktop-shortcut-for-any-exe-file-for-all-users-exsting-in-the-system-713011/)

satyabel 03-19-2009 11:22 PM

how to create desktop shortcut for any exe file for all users exsting in the system
 
hai
hoe to create desk to shortcuts for important executables for all users in the system like windows on right click and send shortcut to desktop option is available on rhel ws or any linux operating system

ddaemonunics 03-20-2009 01:35 AM

probably a shell script to scan the executables and user accounts will solve the problem

knudfl 03-20-2009 01:39 AM

EDIT : Deleted.

.....

ddaemonunics 03-20-2009 04:14 AM

I'll take for example gnome desktop ..because I don't use kde..
..not very familiar with gnome either

a basic desktop shortcut looks like this:
file name : ekiga.desktop
file content:
[Desktop Entry]

Version=1.0
Encoding=UTF-8
Name=Ekiga Softphone
Name[en_CA]=Ekiga Softphone
Name[en_GB]=Ekiga Softphone
TryExec=ekiga
GenericName=IP Telephony, VoIP and Video Conferencing
GenericName[en_CA]=IP Telephony, VoIP and Video Conferencing
GenericName[en_GB]=IP Telephony, VoIP and Video Conferencing
Comment=Talk to people over the Internet
Comment[el]=Μιλήστε σε ανθρώπους μέσω του διαδικτύου
Comment[en_CA]=Talk to people over the Internet
Comment[en_GB]=Talk to people over the Internet
StartupNotify=true
Exec=ekiga
Icon=ekiga
Terminal=false
Type=Application
Categories=GNOME;GTK;Network;Telephony;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=ekiga
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=2.0.12
Name[en_US]=ekiga







Creating links with ln doesn't look very pretty...
So I guess your script has to have a list for all the programs you want to make shortcuts...create the associate files for each program ..lets say firefox.desktop mplayer.desktop on users desktop (/home/$USER/Desktop/) ..fill the files with the content like the one I specified for ekiga above(adapt for each program)...

I think it might work....:P
When finished...post the script here :d


All times are GMT -5. The time now is 12:05 AM.