In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to create desktop shortcuts under Linux". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Create a new xxx.desktop file under your Home/Desktop folder and add execution permission
The code is as follows:
Chmod + x xxx.desktop
For details, please refer to the template below. By the way, I will talk about the installation method of software under linux, taking sublime text 2 as an example.
Download the installation package of sublime linux, and create a new directory name in your home directory, which can be called app, or myapps or something, as long as you understand it, it is the installation directory of the software, unzip sublime text 2 into it, so the overall directory structure is as follows
The code is as follows:
-- home\ yournam
-apps\
-sublime text 2\
The content of the template is explained below. The first line is the necessary comments for all scripts marked with executable tags. The content is the address of the interpreter that executes the script. Here, it is used to explain desktop shortcuts.
The second line begins with the specific content.
Explain two important places, one is exec, this is the address of your executable file, if there is a space in the middle, then enclose it in quotation marks
Icon, this is the icon of your application, or the default icon is ugly.
The code is as follows:
#! / usr/bin/env xdg-open
[Desktop Entry]
Categories=Development
Commit [zh _ CN] =
Comment=
Exec= "/ home/bowman/apps/Sublime Text 2/sublime_text"
Sublime Texe name [zh _ CN] = GenericName 2
GenericName=Sublime Texe 2
Icon= "/ home/bowman/apps/Sublime Text 2/Icon/256x256/sublime_text.png"
MimeType=
Name [zh _ CN] = Sublime Texe 2
Name=Sublime Texe 2
Path=
StartupNotify=true
Terminal=false
Type=Application
XmurDBUSripServiceNameName=
XmurDBUSMutual StartupType =
X-KDE-SubstituteUID=false
X-KDE-Username=owen
For category, here is a main list to choose from
He table below lists all Main Categories.
Main Category Description Notes
AudioVideo Application for presenting, creating, or processing multimedia (audio/video)
Audio An audio application Desktop entry must include AudioVideo as well
Video A video application Desktop entry must include AudioVideo as well
Development An application for development
Education Educational software
Game A game
Graphics Application for viewing, creating, or processing graphics
Network Network application such as a web browser
Office An office type application
Science Scientific software
Settings Settings applications Entries may appear in a separate menu or as part of a "Control Center"
System System application, "System Tools" such as say a log viewer or network monitor
Utility Small utility application, "Accessories"
References:
Http://standards.freedesktop.org/menu-spec/latest/apa.html#main-category-registry
Http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
That's all for the content of "how to create desktop shortcuts under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.