Add profile migration script to trisquel-wm
This commit is contained in:
parent
cd05cea09f
commit
7119628463
1 changed files with 15 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue