Bug#242328: Individual entries cannot be deleted from Lost & Found
Package: kmenuedit
Version: 4:3.2.1-1
Severity: normal
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-1-686
Locale: LANG=C, LC_CTYPE=C
Versions of packages kmenuedit depends on:
ii kdelibs4 4:3.2.1-1 KDE core libraries
ii libart-2.0-2 2.3.16-3 Library of functions for 2D graphi
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libfam0c102 2.7.0-5 client library to control the FAM
ii libgcc1 1:3.3.3-6 GCC support library
ii libice6 4.3.0-7 Inter-Client Exchange library
ii libpng12-0 1.2.5.0-5 PNG library - runtime
ii libqt3c102-mt 3:3.2.3-2 Qt GUI Library (Threaded runtime v
ii libsm6 4.3.0-7 X Window System Session Management
ii libstdc++5 1:3.3.3-6 The GNU Standard C++ Library v3
ii libx11-6 4.3.0-7 X Window System protocol client li
ii libxext6 4.3.0-7 X Window System miscellaneous exte
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xlibs 4.3.0-7 X Window System client libraries m
ii zlib1g 1:1.2.1-5 compression library - runtime
The behaviour below is either a bug or a feature. But it appears to be a logic
failure of some sort in kmenuedit and the K Menu of kicker. Is this the way it is
supposed to work?
****
Start kde fresh for a new user. Accept defaults in Desktop Settings Wizzard.
In Lost & Found folder in the K Menu, find several listings
that actually come from the system file /usr/share/applnk/Applications
At this point the directory ~/.kde/share/applnk exists but is empty.
****
Start kmenuedit. In the Lost & Found folder, delete a sub-folder called HamRadio.
The result is a new file ~/.config/menus/applications-kmenuedit.menu that contains:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Menu>
<Name>Applications</Name>
<Menu>
<Name>HamRadio</Name>
<Deleted/>
</Menu>
</Menu>
</Menu>
Now I find that the folder HamRadio is indeed deleted from the K Menu's Lost & Found folder.
This is as it should be. BTW, "Applications" appears to be the system name for the
directory that is referred to as "Lost & Found" in the kmenuedit panel and the K Menu.
****
Open kmenuedit again. Now delete a single desktop entry KSimus from the Lost & Found folder.
The file ~/.config/menus/applications-kmenuedit.menu now reads.
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Menu>
<Name>Applications</Name>
<Menu>
<Name>HamRadio</Name>
<Deleted/>
</Menu>
<Exclude>
<Filename>kde-ksimus.desktop</Filename>
</Exclude>
</Menu>
</Menu>
This looks OK. But the entry Ksimus is NOT removed. It still shows up in the K menu.
And when I reopen the kmenuedit panel, the KSimus is back again even though
it appeared to be deleted before.
I delete it again, but nothing changes. Same result.
****
It appears that kmenuedit is writing correctly to the XML file
~/.config/menus/applications-kmenuedit.menu, but that both it and the
panel K Menu directory are ignoring what is written there.
****
A similar thing happens when I open kmenueidt and then move KSimus from Lost & Found to
Utilities. It does show up in Utilities, but it is not deleted from
Lost & Found. The file ~/.config/menus/applications-kmenuedit.menu now reads:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Menu>
<Name>Applications</Name>
<Menu>
<Name>HamRadio</Name>
<Deleted/>
</Menu>
<Exclude>
<Filename>kde-ksimus.desktop</Filename>
</Exclude>
</Menu>
<Menu>
<Name>Utilities</Name>
<Include>
<Filename>kde-ksimus.desktop</Filename>
</Include>
</Menu>
</Menu>
Ksimus now shows up in BOTH the Utilities AND the Lost & Found directories
in the panel K Menu.
****
-- no debconf information
Reply to: