Bug 81512

Summary: /etc/X11/desktop-menus/applications.menu modification mystery
Product: [Retired] Red Hat Public Beta Reporter: Michal Jaegermann <michal>
Component: redhat-menusAssignee: Havoc Pennington <hp>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: phoebeKeywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-12 18:42:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 79578    

Description Michal Jaegermann 2003-01-10 00:07:59 UTC
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-10 03:52:16 UTC
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 05:18:36 UTC
> 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 18:42:21 UTC
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.