Bug 81512 - /etc/X11/desktop-menus/applications.menu modification mystery
/etc/X11/desktop-menus/applications.menu modification mystery
Status: CLOSED RAWHIDE
Product: Red Hat Public Beta
Classification: Retired
Component: redhat-menus (Show other bugs)
phoebe
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Havoc Pennington
: Triaged
Depends On:
Blocks: 79578
  Show dependency treegraph
 
Reported: 2003-01-09 19:07 EST by Michal Jaegermann
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-02-12 13:42:21 EST
Type: ---
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 Jaegermann 2003-01-09 19:07:59 EST
This likely is not redhat-menus problem but I have no idea what may be
really responsible.  Checks revealed that sizes and dates for
/etc/X11/desktop-menus/applications.menu are different what
'rpm -ql redhat-menus' would show.  I definitely did not modify this file
knowingly and nobody else really has an access to this installation
This would be not a problem by itself if not that detail that attempts
to run /usr/bin/desktop-create-kmenu failed with the following messages:

Failed to load /etc/X11/desktop-menus/applications.menu:
 Line 3 character 14: Element <WriteDir> is not allowed below <VFolderInfo>

After I replaced 'application.menu' file with the one from an unpacked
'redhat-menus' a directory /var/lib/menu/kde got populated.

This is the top of 'diff -u'

--- applications.menu.junked    2003-01-02 19:55:09.000000000 -0700
+++ applications.menu   2002-12-15 13:20:44.000000000 -0700
@@ -1,141 +1,173 @@
 <?xml version="1.0"?>
-<VFolderInfo>
-  <WriteDir>/root/.gnome2/vfolders/applications</WriteDir>
-  <DesktopDir>/usr/share/desktop-menu-files</DesktopDir>
+<VFolderInfo>  
+
+  <!-- where desktop files are supposed to live -->
   <MergeDir>/usr/share/applications</MergeDir>
+
+  <!-- For now, load up the legacy .desktop trees -->
   <MergeDir>/etc/X11/applnk</MergeDir>
....

It is possible that the other file comes from an updated RH 8.0 installation
but it has "Jan  2 19:55" timestamp while an update of 'redhat-menus'
was performed on "Sun 29 Dec 2002 01:51:33".  Still
/usr/bin/desktop-create-kmenu is supposed to run from rpm scripts and clearly
did not create anything in /var/lib/menu/kde while no errors showed up
in 'upgrade.log'.
Comment 1 Havoc Pennington 2003-01-09 22:52:16 EST
Did you log on as root?

The stupid gnome-vfs vfolder code might have done this.

It needs to be banned from adding WriteDir
Comment 2 Michal Jaegermann 2003-01-11 00:18:36 EST
> Did you log on as root?

On January 2nd?  Quite possible; root also logs from time to time. :-)
Comment 3 Havoc Pennington 2003-02-12 13:42:21 EST
I fixed this in the vfolder code, but then I also reverted to the 8.0 vfolder 
code. So it's sort of double-fixed.

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