Bug#314922: [Pkg-xfce-devel] Bug#314922: xfdesktop4: update-menus overwrites $HOME/.config/xfce4/desktop/menu.xml
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Some ideas for the "postrun" command :
0) postrun="cp /etc/xdg/xfce4/desktop/system.menu.xml " prefix()
"/menu.xml" (current package version)
Problem : if user tweaks his menu.xml file, his changes are lost without
asking when he runs update-menus.
1) postrun="test -e " prefix() "/menu.xml || cp
/etc/xdg/xfce4/desktop/system.menu.xml " prefix() "/menu.xml"
Problem : when root executes update-menus, the
/etc/xdg/xfce4/desktop/menu.xml never gets overwritten since it exists
in the xfdesktop package.
2) postrun="test -e " prefix() "/keep.menu.xml || cp ...
Problem : adds a file in the config directory that isn't known from
upstream.
3) postrun="test -w " prefix() "/menu.xml || cp ...
Problem : may be unclear why the file isn't overwritten. Makes the file
overcomplicated to edit.
No other ideas for now.
The one that -to me- best solves the problem is the 2, but it has a bad
drawback.
Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCtuZYFEQoKRQyjtURAoSMAJ9sd0xqZTGP97kCzga+ZBEEOXJpWQCeJxvQ
LN1jtGe6E+4p/sQbAt5zu4c=
=lpgX
-----END PGP SIGNATURE-----
Reply to: