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.

I just installed a nifty calculator tool that needs to run from a terminal: tapecalc

Is there a way to add either a shortcut icon (or an icon in the dash application area) or a short cut key combination so I can run this without opening a terminal and then remembering what the app's name is and then entering tapecalc in the terminal window to start it?

share|improve this question

2 Answers 2

Create a FileName.desktop with these contents:

[Desktop Entry]
Version=x.y
Name=ProgramName
Comment=This is my comment
Exec=/path-to-you-app/application_name
Terminal=true
share|improve this answer
    
The user needs to be able to interact with the application. Doesn't this require that the application be run in a Terminal app (with a line like Exec="gnome-terminal -e /usr/bin/tapecalc")? –  Eliah Kagan May 29 '12 at 23:26
    
Terminal field specifies whether the application should run in a terminal window or not. Source –  pl1nk May 29 '12 at 23:29
    
You're quite right. Thanks! –  Eliah Kagan May 30 '12 at 0:02
    
Not working for me. I've created "julia.desktop" (placed it in Desktop folder), with contents: "[Desktop Entry] Version=0.3.0-prerelease Name=Julia Comment="start Julia through IJulia" Exec=gnome-terminal ipython notebook --profile julia Terminal=true, with newlines as shown above. When I double-click on the file, I get "There was an error launching the application." From the terminal, "ipython notebook --profile julia" works perfectly. –  Kevin O'Bryant Mar 9 at 20:39

Yes, you can start the Terminal and make it run the command automatically. Create a custom application launcher that runs this as the command:

gnome-terminal -e tapecalc

While this is a perfectly good way to do it, pl1nk's way is even better (in part because it will run with whatever terminal application is set as default in your desktop environment). Since that was posted, I now recommend using that method instead of this, and upvoting that answer. :-)

share|improve this answer

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.