Linux note: add a file with a * .desktop shortcuts

This article is very basic, and I only dedicated to the same Linux white

Manjaro applications generally use similar yaourt pacman and this yay or downloaded directly from the source command-line installation, so generally speaking directly open the application list, find the application you want to add a shortcut, added directly to the desktop on it, but some applications, we are downloaded from the official website of the application, such as godot. downloaded to a file, which is how to add a shortcut to it

The words of the Windows operating ratio is a little complicated to be forced Gager Linux Who we do?

Here is the steps of:

  1. Creating a desktop with the kate *.desktoptext file, for example, I give godot then create a shortcut to create a name godot.desktopon it
  2. Add the following to the file:

godot engine

#图标统一放到/usr/share/icons
#godotengine.desktop
[Desktop Entry]
Name=godot engine
GenericName=Game Engine
Exec=~/softwares/godotengine/godotengine
Icon=godot.png
Terminal=false
Type=Application
StartupNotify=false
Categories=Development;

Another example is to build a shortcut to give XAMPP

XAMPP

#图标统一放到/usr/share/icons
[Desktop Entry]
Name=XAMPP
GenericName=PHP Server
Exec=/opt/lampp/manager-linux-x64.run
Icon=xampp
Type=Application
Terminal=false
StartupNotify=false
Categories=Development;

Such double-click the shortcut on the desktop you can open up your application

Guess you like

Origin blog.csdn.net/weixin_33762130/article/details/91030508