Linux creates a desktop shortcut of the decompressed application

Let's use an example to demonstrate, other applications are similar

        The downloaded installation file is in .tar.xzthe format, usually in the download folder of the system by default (according to your actual path). Right-click on the file and click Extract to here in the drop-down box (meaning unzip).

 After decompression, you will get a folder as shown in the following figure:

 Click to open this folder and find blenderthis file

 Click on it to open blender.

 Then start creating shortcuts

blender-3.0.1-linux-x64Move the decompressed files to /optthe directory

在你的下载目录下打开终端,这里需要用户权限,输入命令
sudo mv ./blender-3.0.1-linux-x64 /opt

After moving, open blender-3.0.1-linux-x64the folder, and the following three files are the files needed to create the Blender desktop shortcut.

 

/opt/blender-3.0.1-linux-x64Open a terminal in the directory

Enter the command in the terminal to blender.desktopmove the creation desktop script to the directory /usr/share/applications/directory.

sudo mv blender.desktop /usr/share/applications/

Then open the file /usr/share/applications/below blender.desktop. Just add the blender startup script and the path of the desktop icon picture in the above figure after the two commands, as shown in the figure below Exec:Icon

 Save and close, and 显示应用程序you can find the Blender icon in the lower left corner.

 

Guess you like

Origin blog.csdn.net/weixin_55988897/article/details/128742592