View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1
Someone know how to update specific icon (.desktop file) on the homescreen.
For example my script change profile -> remove icon -> remove .desktop file -> copy new icon -> create new .desktop file with the same name.
In most cases after changing profile it not show me new icon and the name of the new profile from new .desktop file. It just show me the old name (previous profile) and empty icon
How I can cause to show me what I need without full refresh (lipstick) or reboot ?

I found this file: /usr/bin/xdg-desktop-icon
Inside this file it have some nice explanations like:
The xdg-desktop-icon program can be used to install an application launcher or
other file on the desktop of the current user.

An application launcher is represented by a *.desktop file. Desktop files are
defined by the freedesktop.org Desktop Entry Specification. The most important
aspects of *.desktop files are summarized below

install
Installs FILE to the desktop of the current user. FILE can be a *.desktop
file or any other type of file.
Already tried:
Code:
xdg-desktop-icon install /path/to/new(same_name).desktop
xdg-desktop-icon install [/path/to/new_icon.png
It don't do nothing...

Any advice ?

Thanks