Monday, April 8, 2013

We had some initial troubles in getting around with the Unity Interface of Ubuntu. One of the common problems was in creating short cuts for the UI.

We got some info from this source in Ubuntu Forum while searching.

Here is the explanation and step-by-step procedure:
1. Open your favorite editor with an "ApplicationName.desktop" file
     We use 'gedit' so we give the command:
gedit ApplicationName.desktop
     The 'ApplicationName' field here needs to be replaced with your desired application's name.

2.  Now write the following into the file:
[Desktop Entry]
Name=ApplicationName
Comment=Comment_To_Be_Displayed_when_Mouse_Hover
Exec=/path/to/executable
TryExec=/path/to/executable
Icon=/path/to/application_icon_file
StartupNotify=false
Terminal=false
Type=Application
Categories=Main_Category_of_Application; Sub_Category_of_Application

Here the following Fields are required:
  • ApplicationName - This is the name that you have earlier given to your desktop icon
  • Comment_To_Be_Displayed_when_Mouse_Hover - This is a comment that would be displayed both on the Ubuntu Unity panel as well as if placed on the Desktop
  • /path/to/executable - This is actual path to the install directory of the application that you wish to create the short cut for
  • /path/to/application_icon_file - This is the application icon file that can be a .ico or a picture file with 48x48 max pixel dimension.
  • Main_Category_of_Application - This is an optional parameter, it can be any of the standard application categories that you find in the Ubuntu Software Center - Accessories, Education, Games, Graphics, Network, Office, Development, System .etc.
  • Sub_Category_of_Application - This is sub category under main category - for more info refer to this page: https://wiki.ubuntu.com/SoftwareCenter#Genre
3. After save this file into the correct directory and close the editor.

4. To install the icon to the Dash-Home of the Ubuntu Unity give the following command in a terminal window:
xdg-desktop-menu install --novendor /path/to/ApplicationName.desktop
Now your icon would be available on the Dash-Home.
Next if you need this to be on the Unity Bar - just run the program and right click to 'Lock to Launcher'.

Hope that this was helpful, let us know your feedback.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to Boseji's Blog

Popular Post

Blogger templates

Welcome

Creation by Electronics Hobbyists from Bharat(India) to encourage & help people. This blog hosts the numerous innovations, discoveries and projects we provide.
Our Research Wing Adhar Labs
Contact Form | Email Address
We Support Open Source Hardware Definition v1.0
Creative Commons License
All works on this blog are licensed under a
Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at forbharat.wordpress.com and m8051.blogspot.com.

Permissions beyond the scope of this license may be available at http://forbharat.wordpress.com/permissions/.
Thank you for all your support.

© A.D.H.A.R Labs Research 2008-2013 . Powered by Blogger.

Follow by Email

Followers

PCB Unit Converter

mils
mm

- Copyright © Electronics for Bharat -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -