xdg-desktop-icon command_examples

xdg-desktop-icon command_examples

xdg-desktop-icon – command line tool for (un)installing icons to the desktop

The company ShinyThings Inc. has developed an application named “WebMirror” and would like to add a launcher for for on the desktop. The company will use “shinythings” as its vendor id. In order to add the application to the desktop there needs to be a .desktop file for the application:

shinythings-webmirror.desktop:

———————————————————–
[Desktop Entry]

Encoding=UTF-8

Type=Application

———————————————————–
Exec=webmirror

Icon=shinythings-webmirror

———————————————————–
Name=WebMirror

Name[nl]=WebSpiegel

———————————————————–
Now the xdg-desktop-icon tool can be used to add the webmirror.desktop file to the desktop:

xdg-desktop-icon install ./shinythings-webmirror.desktop

To add a README file to the desktop as well, the following command can be used:

xdg-desktop-icon install ./shinythings-README

 

Leave a Reply

Your email address will not be published. Required fields are marked *