From 694056d1ccbbee03f93bbe1d9944bc62c30da2df Mon Sep 17 00:00:00 2001 From: Julien Lavergne Date: Sun, 5 Dec 2010 22:15:53 +0100 Subject: [PATCH] * etc/xdg/pcmanfm/lubuntu.conf - Move configuration file to etc/xdg/pcmanfm/lubuntu/lubuntu.conf * debian/postrm,preinst,postinst - Handle the location change for pcmanfm configuration using dpkg-maintscript-helper. --- debian/changelog | 7 ++++++- debian/postinst | 4 ++++ debian/postrm | 10 ++++++++++ debian/preinst | 10 ++++++++++ etc/xdg/pcmanfm/{ => lubuntu}/lubuntu.conf | 0 5 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 debian/postrm create mode 100644 debian/preinst rename etc/xdg/pcmanfm/{ => lubuntu}/lubuntu.conf (100%) diff --git a/debian/changelog b/debian/changelog index 6092a47..b709903 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,12 @@ lubuntu-default-settings (0.16) UNRELEASED; urgency=low * usr/share/lubuntu/openbox/rc.xml: - Remove some unused code. * debian/control - - Recommends amixer, scrot and galculator for some openbox keybindings. + - Recommends amixer, scrot and galculator for some openbox keybindings. + * etc/xdg/pcmanfm/lubuntu.conf + - Move configuration file to etc/xdg/pcmanfm/lubuntu/lubuntu.conf + * debian/postrm,preinst,postinst + - Handle the location change for pcmanfm configuration using + dpkg-maintscript-helper. -- Julien Lavergne Sun, 05 Dec 2010 18:56:49 +0100 diff --git a/debian/postinst b/debian/postinst index b9468af..10d313b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -15,5 +15,9 @@ if [ "$1" = configure ]; then lxdm.conf /etc/xdg/lubuntu/lxdm/lxdm.conf 60 fi +if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then + dpkg-maintscript-helper mv_conffile /etc/xdg/pcmanfm/lubuntu.conf /etc/xdg/pcmanfm/Lubuntu/lubuntu.conf 0.15 -- "$@" +fi + #DEBHELPER# exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..1253c24 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,10 @@ +#!/bin/sh -e + +set -e + +if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then + dpkg-maintscript-helper mv_conffile /etc/xdg/pcmanfm/lubuntu.conf /etc/xdg/pcmanfm/Lubuntu/lubuntu.conf 0.15 -- "$@" +fi + +#DEBHELPER# +exit 0 diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..1253c24 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,10 @@ +#!/bin/sh -e + +set -e + +if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then + dpkg-maintscript-helper mv_conffile /etc/xdg/pcmanfm/lubuntu.conf /etc/xdg/pcmanfm/Lubuntu/lubuntu.conf 0.15 -- "$@" +fi + +#DEBHELPER# +exit 0 diff --git a/etc/xdg/pcmanfm/lubuntu.conf b/etc/xdg/pcmanfm/lubuntu/lubuntu.conf similarity index 100% rename from etc/xdg/pcmanfm/lubuntu.conf rename to etc/xdg/pcmanfm/lubuntu/lubuntu.conf