6

I would like to make a launcher that directs an application to be opened in a terminal.

I had it on Maverick and it worked. And also, it added the application to the 'Installed applications'.

At this moment, on 11.10 I can only make the desktop launcher. If I move it to the Unity launcher, it creates a permanent launcher item, and it's not included in the 'Installed Apps' list as well.

Does anybody have a solution?

1
  • 1
    How do these answers stand up for you? Also can you consider closing or accepting some of your other questions. It is always good to know which answers actually helped you for future visitors with the same problem.
    – rlemon
    Mar 2, 2012 at 20:39

2 Answers 2

7

Graphical method
To create launchers that lets you open applications in terminal, you can try alacarte.

First of all, you need to have alacarte Install alacarte installed. After installing it, open alacarte. On the right side, there would be an option to create a New item. Click on it.

enter image description here

When you click the button, a dialog box of title Create launcher would appear. For the option Type, choose Application in Terminal. Give appropriate name to the launcher item and the actual command to execute and so on. After that, click OK and that would save the launcher item.

enter image description here

Now, search for the launcher in the dash and then pin it to your launcher. Clicking on the launcher item would now open the application in terminal.

enter image description here

Note: There is a good chance that you might actually end up pinning the original launcher item which doesn't open in a terminal. So, good luck on pinning the correct launcher item.

Command-line method

sudo nano /usr/share/applications/minitube.desktop

Here /usr/share/applications/minitube.desktop is an example I used. You can use the exact path to the file that you want to edit.

Change the line Terminal=false to Terminal=true. If there is no such line, then add one: Terminal=true.

3
  • 1
    Thank you so much! I tried it, works perfect. Brilliant.
    – Automat
    Jan 12, 2012 at 13:23
  • Pretty pr0 illustrated answer :) Thanks!
    – PJK
    Jan 27, 2012 at 20:57
  • 1
    @Automat Since this answer works for you, consider accepting the answer - there is a checkmark shaped button to the left of the question. Mar 2, 2012 at 19:29
0

I don't really understand, but I'll have a go anyway. If you mean you want to open a new terminal window and run a command in it, then that's easy. And if you've managed to create the .desktop-file, then you can just copy it to ~/-local/share/applications to make it available in the dash. You can then drag it to the launcher and keep it there if you want to.

Another solution that might be interesting to you, is to add the commands to the terminal quicklist. You can see an example of that here: What Custom Launchers and Unity Quicklists are available?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .