Bug 1474412 - Parameter --noupdate with xdg-desktop-menu has no effect
Parameter --noupdate with xdg-desktop-menu has no effect
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xdg-utils (Show other bugs)
7.4
x86_64 Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Alexander Larsson
Desktop QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-24 10:35 EDT by Michal Odehnal
Modified: 2018-07-01 18:28 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michal Odehnal 2017-07-24 10:35:45 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):
xdg-utils-1.1.0-0.17.20120809git.el7.noarch

How reproducible:
On my machine always

Steps to Reproduce:
1. Have xdg-utils installed.
2. Create testing desktop file, for example test.desktop:
[Desktop Entry]
Name=TestingApp     
Exec=gnome-terminal
Icon=utilities-terminal
Terminal=false
Type=Application
Categories=Application;

3. Use following command to install desktop file:
'xdg-desktop-menu install --noupdate /path/to/test.desktop'

Actual results:
While searching for TestingApp I find it immediately, despite not using forceupdate.

Expected results:
I am unable to find TestingApp. 

Additional info:
According to manual page: 
--noupdate
          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
          away.

forceupdate
          Force an update of the menu system.

          This command is only useful if the last call to
          xdg-desktop-menu included the --noupdate option

Note You need to log in before you can comment on or make changes to this bug.