Hi, I made a custom package to customize the Gnome2 menus. When I install the package I get the warning: trying to overwrite '/etc/xdg/menus/applications.menu', which is also in package gnome-menus 0:2.30.0-0ubuntu4
To fix this I was looking into dpkg-divert, but it didn't became clear to me how this actually works and how I should use it. The existing applications.menu file (gnome-menu package) should be renamed to something like applications.menu_bak right? This is what I have in the preinst file right now: dpkg-divert --divert /etc/xdg/menus/applications.menu_gnome --rename /etc/xdg/menus/applications.menu But it gives: (Reading database ... 141750 files and directories currently installed.) Unpacking openstudiomenu (from .../openstudiomenu_0.1-1ubuntu1_i386.deb) ... Adding `local diversion of /etc/xdg/menus/applications.menu to /etc/xdg/menus/applications.menu_gnome' dpkg: error processing /tmp/openstudiomenu_0.1-1ubuntu1_i386.deb (--install): trying to overwrite '/etc/xdg/menus/applications.menu', which is also in package gnome-menus 0:2.30.0-0ubuntu4 Removing `local diversion of /etc/xdg/menus/applications.menu to /etc/xdg/menus/applications.menu_gnome' Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.utf8.cache... Processing triggers for python-support ... Errors were encountered while processing: /tmp/openstudiomenu_0.1-1ubuntu1_i386.deb Another thing I would like to know is how to make upgrades to new versions of the package run ok? Thanks in advance, \r
-- Ubuntu-motu mailing list Ubuntu-motu@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu