I have written my first unity launcher shortcuts and places them in ~/.local/share/applications/
.
The problem is that the shortcuts won't update on any of the commands I trigger in the terminal.
$ sudo updatedb
$ update-desktop-database
Only when I log out and log back in then the shortcuts will update.
I have tried putting the shortcuts in root directories /usr/share/applications/
and then the shortcuts are being updated instantaneously.
What is the problem here ? What is triggered on log out that trigger the update ?
EDIT
I have tried this answer https://askubuntu.com/a/353216/23006 to launch
$ unity --replace
but it won't help.
What will help is to go to AltCtrlF1-6 and restart lightdm
by
$ sudo service lightdm restart
But let's be honest - that's not really a solution to restart the whole DE for one unity launcher...
/usr/share/applications. On log in, the possible desktop file(s) in
~/.local/share/applications` overrule the global ones. Standalone desktop files can be added to the launcher as well. If you copy a global desktop file to the local directory, the system still links to the global one, until next login. from then on, changes yo make in the local one should be applied at once. is that not the case?