Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 27424  / 2 Years ago, sun, may 22, 2022, 6:06:30

I have a shell script that runs a GUI application on Ubuntu 12.04.



The way I'm currently running the application is that I open the terminal and go to the directory that contains that file, then do sudo ./shellScriptFileName which runs just fine, however I have two problems, one is that this takes so much time so I would like to add a shortcut in the launcher, second is that the terminal needs to stay open, which is a pain (hopefully this won't be a problem after I'm able to run it from the launcher.



Clarification: I would like for the terminal to be closed when my application starts running.


More From » 12.04

 Answers
5

It seems that you haven't got this issue done yet, have you visited the "how to" link which I provided in the comment above? Click Me



If you check that you should get this problem solved in several ways, cool and nice.
To be simple, I'd like to recommend a "dummy" way to make it works for you.




  1. Open your terminal and type sudo apt-get install gnome-panel

  2. When the installation is done, type gnome-desktop-item-edit --create-new ~/Desktop, this command will display a popup "Create launcher" dialog, shown as below
    enter image description here



    customize your settings(Name,Command,Icon etc.)


  3. After step 2, you will get a shortcut(it is actually named *.desktop, depends on your setting), feel free to put it in any folder you wish, then drag and drop it to the launcher.



That's it, enjoy your new baked shortcut :-), hope it helps.


[#38321] Monday, May 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
breadoules

Total Points: 212
Total Questions: 118
Total Answers: 120

Location: Dominica
Member since Mon, Jun 22, 2020
4 Years ago
;