• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 702
  • Last Modified:

How do i find the target of a shortcut in Fedora Linux?

I recently spent a long time looking for the location of /mozilla (though i did eventually find it). in windows, i woudl have just checked to see what all my shortcuts were pointing to.

in linux, there seems to be no way to find out what a shortcut is pointing to. how do i do it?
0
the_gentile
Asked:
the_gentile
  • 4
  • 4
  • 2
  • +2
2 Solutions
 
rindiCommented:
Exactly what do you mean with "Shortcut"? Are you referring to Desktop icons or symlinks? If desktop icons, and if you are using KDE as GUI, then just right click the icon and then select properties. You should then see the program name if the icon points to a program, or the path if it is a folder, and if the program isn't inside a path statement then you should also see the location of the app.
0
 
the_gentileAuthor Commented:
i don't know the difference between the two things you mentioned. i am using two shortcuts: one on my desktop and one on the "task bar".

the one on the task bar says "launcher properties" when i go to it's properties, and it has no place that i can see that has any indication of a location or folder.

the one on the desktop gives the location of itself, i.e. the desktop (which is not where firefox is. firefox is in /usr/lib/mozilla). it has 5 tabs (basic, emblems, permissions, notes, launcher).

I have looked in the properties multiple times and dont' see it. if you really think it is there, can you be more specific about *where* it is?
0
 
rindiCommented:
What GUI are you using? KDE, Gnome, XFCE, Beryl, Compiz or another? They all are different (I use KDE, so for that I might be able to help). Also, most of those GUI's have a setup utility (look for the apps in System or similar) where you can setup your desktops and taskbars.
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
the_gentileAuthor Commented:
i'm using gnome.
0
 
rindiCommented:
I prefer KDE, I find it more intuitive and exactly those Desktop Icons etc are easier to setup (right click etc to get more info). I think in Gnome you have to do similar things through the control center somewhere.

You might be able to find some instructions in the following help file:

http://www.gnome.org/learn/admin-guide/2.14/menustructure-0.html

There are also further help files for gnome on that site.
0
 
the_gentileAuthor Commented:
hm, not finding anything in that link...
0
 
rindiCommented:
The way I understand it you'll have to edit the menu files, but since I'm not using gnome I don't know for sure. Maybe you'll just have to go through complete help file.
0
 
nedvisCommented:
What you are actually looking for is WHERE the executable file of the program ( mozilla)  is located within your file system to which your "shortcuts" ( as per your definition ) are pointing to.
You said :"...i am using two shortcuts: one on my desktop and one on the "task bar". "
OK then.
You need to open terminal and type command "which"   + program name.
In your case you would have o type either;

which mozilla

or

which firefox

or

which mozilla-firefox

(and  it all depends on what the Firefox WEB browser actual name in Fedora 7 is.  I'm not currently running Fedora 7
 so I can't tell for sure)

Anyway , UNIX/Linux command "which"  ( without quotes)  will tell you exact location of (not only Firefox) program executable file.
And if Fedora developers are following LFS ( Linux file system ) standards Mozilla- Firefox executable file should be
in  /usr/bin   directory.
To prove that,  open terminal and type :

/usr/bin/firefox  &

this command should launch your Firefox browser  


 
 

0
 
amirs80Commented:
ok another way,  the thing u r looking in GUI try to see in CLI mode and check the link of that specific item or icon u r observing
0
 
GdivosCommented:
Shortcuts in gnome use the XDG desktop entry specification and normally have a '.desktop' extension.

http://www.freedesktop.org/wiki/Specifications/desktop-entry-spec?action=show&redirect=Standards%2Fdesktop-entry-spec

http://library.gnome.org/admin/system-admin-guide/2.14/menustructure-desktopentry.html.en

You should find information about the 'shortcut' inside the file (open it with gedit).

..
..
Exec=gcalctool
Icon=gnome-calculator
Terminal=false
..
..

This runs 'gcalctool', appears with the gnome-calculator icon and does not run in  a terminal.

Check out your ~/.local/share/applications/ for such files. And since they are simple text files in the inside you can open them with any txt editor. Icons appearing on your desktop are in you ~/Desktop directory.

Another way is using symbolic links but thats more like an alias to the original file.
http://help.hardhathosting.com/question.php/95
http://en.wikipedia.org/wiki/Symbolic_link

0
 
GdivosCommented:
Additional info: to find out where is a certain executable, start a terminal and type:
which gcalctool
This displays the full path of that file.

You can check out where a symlink points to using simply
ln -l /path/to/symlink
0
 
the_gentileAuthor Commented:
Experts were not able to explain the solution to me in a way that made sense. Ultimately my question had some misconceptions in it that were not addressed or corrected by the experts. It turns out that in Linux the path to an executable is not required to run a program, thus the shortcuts do not have paths to files, but rather just the name of the program to run. This information would have been very easy to explain and would have satisfied me completely.
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 4
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now