3

I would like to know which command is executed when I click on a given XFCE menu item.

For instance, in my menu, Applications contains an item Users and Groups, but clicking on it does nothing. I would like to run the same program in the command line to see if there are any error messages, but I do not know which command it is.

3

The easiest way to do this is to drag the menu item onto your desktop. Once the icon appears there, right click it, then go to properties, then go to the launcher tab. It will tell you the command there.

Either that or you can grep for the displayed name of you application in /usr/share/applications (location may vary with distro). Then the Exec= line of the file(s) found should contain the command. Eg:

$ grep -rl 'Application Finder' /usr/share/applications/
/usr/share/applications/evince.desktop
$ grep '^Exec=' /usr/share/applications/evince.desktop
Exec=evince %U

See here for what the entries in the .desktop files mean.

1
  • 1
    There is also a menu editor for XFCE. I'm not sure how well it works these days though since it might be a bit outdated.
    – peterph
    Mar 5 '14 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.