Ubuntu13.04 set Dash to display Eclipse

Source: Internet
Author: User
Install Android development tools in Ubuntu13.04: adt-bundleAndroid-ndk-r8e are extracted after the configuration environment variables can be used. However, the Dash cannot be searched, and it looks uncomfortable. The setting is as follows: 1. The terminal can create an eclipse STARTUP script in the/usr/bin directory: $ sudogedit/usr/bin/eclipse to add the following content to it:

Install Android development tools in Ubuntu 13.04:
Adt-bundle Android-ndk-r8e
 
After decompression, you can configure the environment variables. However, the Dash cannot be searched, and it looks uncomfortable.
 
The settings are as follows:
 
1. Available Terminals
Create an eclipse STARTUP script in the/usr/bin directory:
$ Sudo gedit/usr/bin/eclipse
 
Add the following content:
#! /Bin/sh
Export illa_five_home = "/usr/lib/mozilla /"
Export ECLIPSE_HOME = "/opt/eclipse"
$ ECLIPSE_HOME/eclipse $ *
 

 
Note: After saving, you must see the same color. Sometimes, when you copy and paste the text directly, the quotation marks are not English quotation marks "", but Chinese quotation marks "". in this case, you need to change it to an English quotation mark.
 
Save text.
Add the executable permission for the script:
$ Sudo chmod 755/usr/bin/eclipse
 
At this time, you can directly enter eclipse on the terminal to start the program. If you cannot cancel the account, you can.
 

2. Dash icon
Add an icon on the Dash homepage so that you can place the chart in Unity or the Dock for quick start.
 
Enter the following command on the terminal:
$ Sudo gedit/usr/share/applications/eclipse. desktop
 
Add the following content in the text:
 
[Desktop Entry]
Name = Eclipse
Comment = Eclipse IDE
Exec =/home/gong/android/eclipse
Icon =/home/gong/android/eclipse/icon.png
Terminal = false
Type = Application
Categories = Application; Development; Unity; Eclipse;
StartupNotify = true

Here, icon.png is the 32x32 png that I modified based on the icon. xpm in the original directory. Because the icon. xpm is 256*256, the icon in Dash is too big to be harmonious.
 
In this way, you can find eclipse on the Dash homepage.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.