How do I add a launcher for .sh applications?

1

Getting the program to show up in the search seems to be difficult at best, which I'm sure will get better as Gnome3 matures and progresses. (The state of Gnome3 right now will certainly not be the same in a month.)

In order to add an application as a favorite (so that it shows up in the launcher on the left of the "Activities" screen), simply hit Alt+F2, and run the application or script you want. While it is running, enter the "Activities" screen, and drag the running application to the favorites. I have used this only for programs that use a GUI, but feel free to play with it.

Hope that helps.

I will add: I'm not in love with Gnome3 as it currently stands, but it's a step ahead of Unity, and I'm excited to see where it goes in the future. One great thing about open software, it moves fast. We should see a rapid progression in changing and adding features. These are critical times in the evolution of the desktop...

0 0
2

by

Hailwood

Last Updated August 23, 2015 18:01 PM

I have installed ubuntu (11.04).

I installed phpstorm which is simply an archive for you to extract and shove in your /opt directory.

To run it you would use /opt/PhpStorm-103.243/bin/PhpStorm.sh

In unity I had created a launcher on my desktop.

Now I have installed gnome-3(gnome-shell),

And I have nothing in my desktop.

So how do I run phpstorm quickly? Can I get it to show up in "applications"?

Answers 9

I'm not familiar with Gnome3, but with an older Gnome, you can right-click on the application menu, and click on Edit Menus - that'll allow you to modify the menu tree. Select the submenu you want your launcher to appear in, then click New Item and point it at the path to your shell script.

Erigami
April 28, 2011 02:54 AM

if PhpStorm.sh is a terminal application Find a method to create new launcher or lense and populate it with...

0 0
3


Question:

I have installed ubuntu (11.04).

I installed phpstorm which is simply an archive for you to extract and shove in your /opt directory.

To run it you would use /opt/PhpStorm-103.243/bin/PhpStorm.sh

In unity I had created a launcher on my desktop.

Now I have installed gnome-3(gnome-shell),

And I have nothing in my desktop.

So how do I run phpstorm quickly? Can I get it to show up in "applications"?


Solution:1

PhpStorm now has a feature to create a launcher for you. It's available under:

Tools -> Create Desktop Entry...

This will add PhpStorm to the system menu for the current user or for all users. The created launcher is also compatible with Gnome Shell.


Solution:2

I worked it out :D

In Terminal

gedit ~/.local/share/applications/.desktop

In gedit

Here you should edit: Note that the below comments are best...

0 0
4

I have installed ubuntu (11.04).

I installed phpstorm which is simply an archive for you to extract and shove in your /opt directory.

To run it you would use /opt/PhpStorm-103.243/bin/PhpStorm.sh

In unity I had created a launcher on my desktop.

Now I have installed gnome-3(gnome-shell),

And I have nothing in my desktop.

So how do I run phpstorm quickly? Can I get it to show up in "applications"?

PhpStorm now has a feature to create a launcher for you. It's available under:

Tools -> Create Desktop Entry...

This will add PhpStorm to the system menu for the current user or for all users. The created launcher is also compatible with Gnome Shell.

I worked it out :D

In Terminal

gedit ~/.local/share/applications/.desktop

In gedit

Here you should edit: Note that the below comments are best guess, feel free to correct me

[Desktop Entry] Version=1.0 #not sure what this does...
0 0
5

Help me please with a bash script of a few lines.

I have a MyApplication executable in some folder, and I need to make a launcher script to call that application from it's folder when I click it from a grafical interface.

(I need this because I need my application to be launched from it's folder, so that Qt::currentPath() will return the current folder the executable is in)

Please help me, I just had to power off my linux machine two times in a row, I made fork bombs instead of launchers :(.

P.S. I'm a linux newbie, trying to figure out scripting.

EDIT

More about my current problem: Qt how to open a file in current dir ? or what's wrong with this?

Details: MyApplication is a GUI project compiled in Qt-Creator. It uses .xml files for storage. If I cd manually to the folder the executable is in, and run it, everything works fine, the application knows the path to the .xml files (current directory). But, if I just click the icon of the...

0 0
6

What happens when you launch from the GUI panel is child processes get the environment from that, and that does not normally source your bash interactive scripts. So the exported variables are not present in programs launched from the GUI.

What you can do is alter the the GUI startup script to source a new file that defines these variables.

What I do is put all the exported variables in a separate file that is sourced from the ~/.bash_profile, or ~/.zlogin (for zsh), that I call ~/.environ.

Example entries in this file:

PATH=${PATH}:$HOME/bin:$HOME/.local/bin:/usr/games/bin export SSH_ASKPASS=/usr/bin/x11-ssh-askpass

For the GUI, now you have to modify that startup script.

Xfce will prefer your personal xinitrc, so first do this:

cp /etc/xdg/xfce4/xinitrc ~/.config/xfce4/xinitrc

Then edit this copy and add this line:

source $HOME/.environ

I add it just before the xfce4-session start line. Now the GUI launcher will have the same...

0 0
7

On 09/12/11 11:13, James Knott wrote:

> Basil Chupin wrote:

>>> I'm about that level too, having just installed openSUSE 12.1, where

>>> I verified that before I typed it.

>>

>> Which is what I did as well, before and after, your post - it ain't

>> there :-) .

>

> I believe someone else pointed out the difference. I have my desktop

> set for folder view, where it does work.

I didn't know that, so my assumption, fortunately, was a lucky "strike"
:-) .

To the initiated this behaviour is called "a feature"; to all others it
is "a bug" :-) .

BC

--
Diapers and politicians should be changed often; both for the same reason.

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden...

0 0
8

Hello everybody

Before each coding session, I have to run an .sh script which performs backup and other similar actions regarding my ROR project.

What I would pretty much like, is my script to end by launching RubyMine.

The problem is that whatever I try, the Terminal Window remains open and shows the RubyMine trace info.
IF I accidentally close this Terminal, then RubyMine ALSO closes withouth any further notice and without saving anything (ugh!)

As you understand this is not acceptable, however I belive there should be a way of launching RubyMine from an .sh script AND return.

So far I've tried to use the following commands inside the .sh file (alas with no success)
1. mine (terminal does not return)
2. nohup mine (terminal returns but ANOTHER terminal opens which does not return)
3. mine & (nothing happens)

Could anybody help me?

Thanks in advance

George

Ubuntu 15.04
RubyMine...

0 0
9
Note: This document describes functionality only available if you have taken control over a Toolkit configuration. Please refer to the Shotgun Integrations Admin Guide.Note: The process that this guide refers to, is the legacy way of setting up software paths and versions. The Software entity is the new prefered approach to controlling versions and paths, and is used automatically if you have based your project configuraion off the `tk-config-default2` config (which is the new default for advanced configurations.)

The example below walks you through what you need to change to have Maya 2014 and Maya 2015 appear in SG Desktop's launcher as a submenu in a single launch button. This will also show a menu option for launching each version of Maya in Shotgun (there's no submenu support in Shotgun).

Limitations

If you need to provide different default args for the different versions of your DCC, this method will not work. You will need to define separate instances of the...

0 0
10

If I want to install the Chrome App Launcher and navigate to https://chrome.google.com/webstore/launcher , then click the only button over there, that page will install Chrome App Launcher shortcut to my Windows taskbar without any confirmation from the operating system whatsoever.

If I use a different browser, other than Chrome, I get redirected to the Chrome Webstore, with a message "You will need Google Chrome to install most apps, extensions and themes." showing. I guess, Chrome is able to place a shortcut from within a web page to my Desktop/Taskbar via its inner methods, as it's a general executable and may do "a lot" on its own.

How can I add my (any) shortcut from within a web page rendered in Chrome the same (or another) way the Chrome App Launcher has been...

0 0
11

Yes, You can create a ".desktop" file in "~/.local/share/applications", then the specified "Icon" Should show up in the Gnome Shell Menu ( You may, or may not need to reload the shell: "alt-F2, r " )

This is for example my "Unreal Tournament 2004" launcher:

$ cat ~/.local/share/applications/ut2004.desktop [Desktop Entry] Type=Application Encoding=UTF-8 Name=Unreal Tournament 2004 Comment=Unreal Tournament 2004 Exec=/home/joe/Games/ut2004/ut2004 Icon=/home/joe/Downloads/ut2004.png Terminal=false

Or my "Armory" Launcher:

$ cat ~/.local/share/applications/armory.desktop [Desktop Entry] Type=Application Encoding=UTF-8 Name=Bitcoin Armory Comment=Bitcoin Armory Exec=python /home/joe/Git/BitcoinArmory/ArmoryQt.py Icon=/home/joe/Git/BitcoinArmory/img/armory_logo_h72.png Terminal=false

etcetera...

0 0
12

Instead of modifying the AOSP make files (which is annoying because then you need to track your changes) it is easier to add a LOCAL_OVERRIDES_PACKAGES line to your app's make file.

For instance:

LOCAL_OVERRIDES_PACKAGES := Launcher2 Launcher3

added to your Android.mk file will ensure that those packages are not added to any build where this package is added.

Following that, you should do a

make installclean

and then start your build the same way you always make your build. The make installclean is important to remove the packages that are left behind by the previous build.

I also just found a nice answer to how to do this in another question, see: How would I make an embedded Android OS with just one...

0 0
13

Ok this is quite simple, what you want to create is a named file with a .desktop extension such as below(Here is an image):

[Desktop Entry] Name=Steam Comment=Application for managing and playing games on Steam Exec=/usr/bin/steam %U Icon=steam Terminal=false Type=Application Categories=Network;FileTransfer;Game; MimeType=x-scheme-handler/steam; Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;

What you can do is run gedit(or your favorite text editor) with sudo by using the terminal application.

sudo gedit

Browse to the /usr/share/applications/
directory. It should look something like this:

Select any .desktop file, it should look something like the steam.desktop example above. After you have edited it it should be close to this:

[Desktop Entry] Name=Fritzing Comment= Exec=sh [link to file] Icon=[link to icon(not required)] Terminal=false Type=Application Categories=[choose what categories you want this file...
0 0
14

For most of the times, chances are that you can launch one application and right click on the icon in Launcher and click “Lock to Launcher” to make the application icon stay in Launcher for easy access.

However, there are a few programs that does not support Launcher.

After researching for a while, I found the answer on StackOverflow, but can’t locate the original post.

Here are the steps to manually make it happen.

First, create a .desktop file to the application (eclipse for example) in the applications directory:

gedit ~/.local/share/applications/eclipse.desktop

Then, paste the following inside (don’t forget to edit Icon and Exec values):

[Desktop Entry] Type=Application Name=Eclipse Comment=Eclipse Integrated Development Environment Icon=** something like /opt/eclipse/icon.xpm ** Exec= ** something like /opt/eclipse/eclipse ** Terminal=false Categories=Development;IDE;Java; StartupWMClass=Eclipse

Note: to locate your eclipse, issue...

0 0
15
Kris Says:
June 15th, 2015 at 5:06 am

What a pain in the backside! I was prepared to follow the tutorial to get something approximately like the "create application shortcuts" function of chrome desktop versions. But as others have reported, the script didn't work for me. And I'll be buggered if I'm going to type it all out. Wasted enough time on this already. I don't really want this stupid chromebook, but have to have it for my work in a school that is going GAFE. What a pain. Give me a good old pc any day. For the chromebook I'll just stick to bookmarks, until Google wake up and give us the same functionality in the chromebook browser that we have on a desktop pc.
And slightly off topic, but related... what the heck is with that stupid magnifying glass down where the start button would reside on a desktop? If I want to find an app, I have to click that, then click all apps, then click the app I want??? Come on Google, put the app launcher back in the task...

0 0
16

If you have a program you use regularly on Linux desktop, you may want to create a "desktop shortcut", so you can launch the program by simply clicking on the shortcut. While most GUI programs automatically create their desktop shortcut during installation, GUI programs built from their source or terminal applications may require you to set up associated shortcuts manually.

In this tutorial, I will describe how to create a desktop shortcut or launcher on various Linux desktops.

A desktop shortcut is represented by a corresponding .desktop file which contains meta information of a given app (e.g., name of the app, launch command, location of icon file, etc.). Desktop shortcut files are placed in /usr/share/applications or ~/.local/share/applications. The former directory stores desktop shortcuts that are available for every user, while the latter folder contains shortcuts created for a particular user only.

Create a Desktop Shortcut From the Command...

0 0