How to Create a linux starter file (shortcut)

Source: Internet
Author: User

As we all know, different from windows, linux software installation methods are varied =

Written using the sh script, which is compiled by the tar package, in rpm format, deb, and various wonderful paths, and then run with the + chmod permission, there are also various configuration files modified ......

Similarly, there are still a few software programs that can set shortcuts in the starter like wps linux. In most cases, you have to write the starter file yourself ..

The standard file format for desktop shortcuts under linux is. desktop. After many files are installed, a shortcut is created under the/usr/share/application folder, which can be copied directly to the desktop.

However, there are still many things without default shortcuts.

We can use a text editor to open a shortcut to see the content:

The format is as follows:

[Desktop Entry] // each desktop file starts with this label, indicating that this is a Desktop Entry file Version = 1.0 // indicating the Version of the Desktop Entry (optional) name = Firefox // program Name (required). Create a Firefox shortcut as an example. GenericName = Web Browser // general program Name (optional) comment = A Web Browser // program description (optional) Exec = firefox % u // program startup command (required), which can run with parameters // The current Type is Application, this effective Icon = firefox // sets the shortcut Icon (optional) Terminal = false // whether to run in the Terminal (Optional). When the Type is Application, valid Type = Application // desktop Type (required). Common values include "Application" and "Link" Categories = GNOME; Application; Network; // specify the category displayed in the menu bar (optional)
In this way, we can write shortcuts by ourselves.

EXEC can point to bash scripts, or use the methods described earlier (in the previous articles) to avoid administrator authentication, so that you can directly double-click it.

Of course, there is also a simple way to establish soft links using the ln-s command, which is not shown here.

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.