Advertisement

How to create a desktop launcher for Linux

阅读量:

The first thing you must know is place where .desktop files are stored, see the following paths and priority increases from top to bottom:

复制代码

and there's also some directories that default icons are stored you should know:

复制代码

Create a .desktop file and add contents below:

复制代码

optional contents:

复制代码

Enter the command below:

复制代码

Tips:

How to convert an icon to a supported format:

复制代码

If you want to know the size of the icon:

复制代码

Aug 4 2022

FAQ

Why are there two icons when I startup the launcher?

It's probably about the StartupVMClass parameter that can't match the correct value. Enter the command as the following shows:

复制代码

When you execute the command above, your cursor will became + , then click at any location on the target window in this mode, thereby you will see WM_CLASS output as the following listing shows:

复制代码

Choose any one and fill in Desktop Entry as the following listing shows:

复制代码

全部评论 (0)

还没有任何评论哟~