Red Hat Bugzilla – Bug 1474412
Parameter --noupdate with xdg-desktop-menu has no effect
Last modified: 2018-07-01 18:28:44 EDT
Description of problem:
While testing xdg-desktop-menu install --noupdate *.desktop, I noticed that --noupdate has no effect, what I understood from manual page that option is there to postpone updating menu system, so the Icon for my desktop file should not have been added. Yet when I search for it I can find it immediately. Therefore I cannot test if forceupdate option works as it is supposed to.
Version-Release number of selected component (if applicable):
On my machine always
Steps to Reproduce:
1. Have xdg-utils installed.
2. Create testing desktop file, for example test.desktop:
3. Use following command to install desktop file:
'xdg-desktop-menu install --noupdate /path/to/test.desktop'
While searching for TestingApp I find it immediately, despite not using forceupdate.
I am unable to find TestingApp.
According to manual page:
Postpone updating the menu system. If multiple updates
to the menu system are made in sequence this flag can be
used to indicate that additional changes will follow and
that it is not necessary to update the menu system right
Force an update of the menu system.
This command is only useful if the last call to
xdg-desktop-menu included the --noupdate option