Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to see some app's console command from unity dash menu?

For example, I open the Dash via the windows key, type in some app name, it appears in the list below, and I do "something" to see how to start it from the command line.

I am asking this because I came across multiple 3rd party apps whose console command has nothing with the app name, and I was unable to figure out how to open such apps from the console.

share|improve this question
2  
possible duplicate of Open the same application from terminal –  Radu Rădeanu Oct 15 '13 at 7:53
3  
@RaduRădeanu The OP want to know how to extract the command from an icon in the Unity dash, not an already running instance (subtle differences). –  minerz029 Oct 15 '13 at 10:03
    
@RaduRădeanu I installed this app but this is not for my case (thou the script got upvote). What about when the app is not running? –  ubuntico Oct 15 '13 at 16:16
add comment

1 Answer 1

  1. Navigate to this path in a file manager: /usr/share/applications

    For example, with Nautilus you would run (in a terminal)

    nautilus /usr/share/applications 
    

    Note: some user created application launchers may reside in ~/.local/share/applications
    Be sure to check there too, if you've created a custom .desktop file.

  2. Locate your program by name (using search if required).

  3. Right click the file for your program.
  4. Select 'Properties'.
  5. There should be a 'Command' field which shows the command to be executed. If the program has arguments such as %U, those are file arguments passed when that program is used to open a file.
share|improve this answer
    
More issues I have with apps located in /opt or other non-usual directories –  ubuntico Oct 15 '13 at 16:16
1  
@ubu If the app is installed to opt, then it will not have an icon unless you set it yourself. –  minerz029 Oct 15 '13 at 21:42
    
@ubuntico See my edit. You should check .local/share/applications too. –  minerz029 Oct 15 '13 at 23:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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