Add profile migration script to trisquel-wm

This commit is contained in:
Rubén Rodríguez 2013-03-18 20:54:59 +01:00
parent cd05cea09f
commit 7119628463

View file

@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=9 VERSION=10
COMPONENT=main COMPONENT=main
QUILT=skip QUILT=skip
@ -42,6 +42,20 @@ EOF
cat << EOF > debian/scripts/trisquel-wm cat << EOF > debian/scripts/trisquel-wm
#!/bin/sh #!/bin/sh
# Migrate the profile if needed
[ -f ~/.config/profilemigrated ] || touch ~/.config/profilemigrated
if ! grep $(lsb_release -r -s) -q ~/.config/profilemigrated ; then
rm ~/.cache/compiz* ~/.compiz* ~/.config/compiz* -rf
for key in /apps/panel /apps/compiz /apps/compiz-1 /apps/compizconfig-1 /apps/compizconfig
do
gconftool --recursive-unset $key
done
gsettings reset-recursively org.gnome.gnome-panel
gnome-panel --replace
lsb_release -r -s > ~/.config/profilemigrated
fi
WM=compiz WM=compiz
FALLBACK=openbox FALLBACK=openbox
which metacity && FALLBACK=metacity which metacity && FALLBACK=metacity