Add a program starter in Ubuntu

Source: Internet
Author: User
Tags imagemagick
Add the software installed on the Ubuntu system as the program starter. some will automatically create shortcuts, which can be found in the program. some will not appear in the application after installation, for example, Eclipse, SpringToolSuite, or green software, how to manually create a shortcut... add the software installed on the Ubuntu system as the program starter. some will automatically create shortcuts, which can be found in the program. some will not appear in the application after installation, for example, Eclipse, Spring Tool Suite, or green software, how can we manually create shortcuts (or program starters? In Ubuntu, each software icon corresponds to a configuration file in the/usr/share/applications Directory, suffixed with. desktop. Therefore, you can create a configuration file for the corresponding software in this directory to implement shortcuts. For the syntax of the configuration file, see other configuration files in this directory. This article also describes how to change the xpm file size of the Ubuntu application icon to solve the problem that the icon size is too large and the display is abnormal. Create a program starter in Ubuntu: take Spring Tool Suite software as an example. the specific method is as follows. Environment: System: Ubuntu 13.04 amd64, software: Spring Tool Suite 3.2.0 x86_64 implementation method: 1. create an sts initiator configuration file under the/usr/share/applications Directory, open the terminal (search in the program, press ctrl + alt + t), and enter the following command: $ cd/usr/share/applications $ sudo gedit sts. desktop description: the gedit command opens a file in a text editor. if the file is not created, it is automatically created. you can also use the vi command to edit the file. Syntax: vi sts. desktop. 2. add the configuration and save the sts. desktop file. Simple configuration example: [Desktop Entry] Version = 1.0 Name = Spring Tool SuiteExec =/home/henry/apps/Spring-Tool-Suite/stsTerminal = falseIcon =/home/henry/apps/Spring-Tool -Suite/icon. xpmType = ApplicationCategories = Development description: complete path of the Exec executable file, Icon, or png image. After that, you can find it in the application and add the program initiator to Dash Home. Change the size of the xpm file of the Ubuntu application icon: some software icons are 256 * 256px in size. they are not automatically reduced on the Unity interface after Ubuntu12.04, but can be modified by yourself. the method is as follows: 1. open the terminal and install imagemagick. the command is as follows: $ sudo apt-get install imagemagick $ convert/home/henry/apps/Spring-Tool-Suite/icon. after xpm/home/henry/apps/Spring-Tool-Suite/icon.png2、is converted to PNG, change icon.png in the top file of the software to the icon.png. in the application, the icon is normal. 3. Although the icon is normal, it still looks very large. you can use the command to change the size, generally 48*48 or 32*32. the command is as follows: $ convert/home/henry/apps/Spring-Tool-Suite/icon.png-resize x48/home/henry/apps/Spring-Tool-Suite/The x in the icon-small.png command is a letter, you can also directly change the xpm size, but the icon quality is low and the rounded corner is distorted. 4. you can also use the software to change the png icon size. go to the Ubuntu Software Center to install a Pinta image editor and change the image size to 48x48 pixels, then the display will look better (remember to change it. icon parameter in the desktop file ). There is also a way to add the startup program 1. create the eclipse starter configuration file 1.cd/usr/share/applications2.vi eclipse in the/usr/share/applications Directory. compile top2. edit eclipse. and save. Simple configuration example: [Desktop Entry] Version = 1.0 Name = eclipseExec =/home/su/eclipse/eclipseTerminal = falseIcon =/home/su/eclipse/icon. xpmType = ApplicationCategories = Development. then you can find eclipse in "programming" of "application ".
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.