Bug 862

Summary: Merged distribution menu misreferred to Mandrake
Product: Sisyphus Reporter: Mikhail Zabaluev <mhz>
Component: gnome-coreAssignee: AEN <aen>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P4    
Version: unstable   
Hardware: all   
OS: Linux   

Description Mikhail Zabaluev 2002-04-18 03:43:51 MSD
/etc/gnome/config/panel still contains:
[Merge]
directory=/usr/share/gnome/distribution-menus/Mandrake

Such a directory is not in gnome-core anymore, since it has been renamed to ALTLinux.

This is the lesser part of the problem (gnome-core 1.4 is a mess, isn\'t it?). In order for new menus to pick up after an upgrade that switches the dir from Mandrake to ALTLinux, the user has to update the symlink ~/.gnome/apps-mdk
forcefully. This necessity is due to the following dumb patch:

@@ -27,6 +30,11 @@
          \&quot;gnome-debian.png\&quot;, \&quot;/var/lib/gnome/Debian/.\&quot;,
          NULL, NULL
        },
+       { DISTRIBUTION_ALTLINUX, \&quot;/etc/altlinux-release\&quot;,
+         N_(\&quot;ALT Linux\&quot;), N_(\&quot;ALT Linux menus\&quot;), \&quot;mdk/helix-button-yellow.png\&quot;,+         \&quot;apps-mdk\&quot;/*GNOME_DATADIR \&quot;/gnome/distribution-menus/ALTLinux/.\&quot;*/,
+         mdk_menu_init_func, NULL
+       },
        { DISTRIBUTION_REDHAT, \&quot;/etc/redhat-release\&quot;,
          N_(\&quot;Red Hat Linux\&quot;), N_(\&quot;Red Hat menus\&quot;), NULL,
          \&quot;apps-redhat\&quot;,
@@ -116,5 +124,12 @@
 rh_menu_show_func (GtkWidget *menuw, GtkMenuItem *menuitem)
 {
        rh_submenu_to_display (menuw, menuitem);
+}
+
+static void
+mdk_menu_init_func (void)
+{
+  if (!get_mfiles_from_menudir(gnome_util_home_file(\&quot;apps-mdk\&quot;)))
+      symlink(GNOME_DATADIR \&quot;/gnome/distribution-menus/ALTLinux/.\&quot;,gnome_util_home_file(\&quot;apps-mdk\&quot;));  
 }
 

---

---

Comment 1 inger@altlinux.org 2004-04-29 13:02:10 MSD
пакета нет