Skip to content
Snippets Groups Projects
Commit 71196284 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Add profile migration script to trisquel-wm

parent cd05cea0
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=9
VERSION=10
COMPONENT=main
QUILT=skip
......@@ -42,6 +42,20 @@ EOF
cat << EOF > debian/scripts/trisquel-wm
#!/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
FALLBACK=openbox
which metacity && FALLBACK=metacity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment