[Raspberry Pi General] -CALIBAN666-:
Menu Entry/Icon and Shortcut on the LXDE Desktop:

--------------------------------------------------

The LXDE desktop, which is the Linux distribution for Pi usually preinstalled, has a rough charm. Application icons to be placed on the desktop but you need nothing more than a text editor, file manager and possibly a couple of lines in the terminal. Everything I've also performed as described as a normal user "pi".

The example:

I have on my Linux Raspbian Wheezy from 15/07/2012 installed the beta of Google Chrome browser from Hexxeh, as I have as a user pi run in a terminal this command, which downloads an install script of Hexxeh and running:bash <(curl -sL

http://goo.gl/5vuJI

The Google Chrome can then be started with the following command from the Terminal:chrome -disable-ipv6

I do not want every time to open a terminal and type this, so I create a desktop shortcut and an entry in the Start menu of LXDE.

What I need to know beforehand:

To shortcut and menu item to launch an application to create, I have to know exactly where is my application and I need an icon for input.The input of:

which chrome

in a terminal gives me the full path of the executable Chromefile, am in my case / usr / bin / chrome. Icons are in the system at / usr / share / pixmaps. For simplicity, I'll find here simply from an existing one, which I will use the same. I could also use a custom icon from another place I know of in the file system.

Add Shortcut on the LXDE desktop:

I click in the current desktop, right-click on a blank area. In the opening context menu, I select "New ..." and under the item entitled "Empty File". LXDE me now asks for a name for the file and I rename it now "Chrome.desktop". Important is. "desktop", because that LXDE later recognizes that there is a particular file is additional information.

The file is now on the desktop, to be paid to what we want to start with her. I click with the right mouse button on the new icon and select from the context menu from the point Leafpad. Leafpad on my system after the initial installation is a simple editor supplied. Who else has set up his system, possibly given another text editor here, or need to start it manually and open to our file. It is located in the folder / desktop below our home folder, in our case in / home / pi / desktop.

I write following text in the file:

[Desktp Entry]

Name=Chrome

Comment=Der Google Chrome Browser

Exec=/usr/bin/chrome -disable-ipv6

Icon=/usr/share/pixmaps/netsurf.xpm

Terminal=false

Type=Application

Categories=Network;WebBrowser;

StartupNotify=true

I would not type in all complete, but it could also modify my copy from one of the other existing desktop shortcuts and. In fact I have also made it just because you and i are so lazy,lol.

Important parameter is the Exec, here I give the full path and file parameters to start my desired program. I simply used as an icon of the Netsurf browser, because I was too lazy to me to create something of their own. The parameter Terminal ensures that the whole is not running in a terminal .. all the parameters and the else is there are well documented because the LXDE here based on the specifications from freedesktop.org.

http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html

After saving the file, I can now start on the Chrome Double-click on my new desktop shortcut.

Entry in the start menu setting:

The LXDE start menu consists of items that off as well. Desktop files exist, as I have just described. They are system-wide in / usr / share / applications. In order to create a new entry, we need root privileges. But as we always do not normally work as root on the system, it is sufficient and is safer to create a new entry for our normal user (in my case its"pi").

Now I start a terminal under LXDE. Automatically I am then in my home folder / home / pi. What I need now is a subfolder that I add with this:

mkdir .local/share/applications

I can do that also use the File Manager, but I have to do in the "View" menu "Show hidden files" option bzw.Strg-H to press for activate.Background:eek:n Unix systems,files and folders whose names begin with a dot are hidden. You can access the shell but e.g. with ls-al also listed as normal.

Using the file manager now we navigate in our home folder and continue through the directories in our new directory. Here, I can now add my link as well just as described above for the desktop shortcut, or copy the file to copy and paste into my new folder. LXDE noticed the creation of this file usually updated automatically and then the Start menu. The entry for Chrome is then "Internet" (works on the Network category, which I have indicated in the desktop file).

Tip on the edge

1.On opening an existing file from your desktop and the study of the entries you learn quickly what belongs together like.

2.If the LXDE cant work with menu to process the change to a desktop file again directly, you can enter the following in a terminal:

lxpanelctl restart

HAVE FUN:cool:

NOW MY 100000,WHEN SHARING GIVE CREDITS,ITS HARD WORK,BLA BLA.

--------------------GREEEETZ TO MY BUDDY BASTEK>-----------------------