2012-03-03 15:53:58 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# desktop.firsttime - Desktop firsttime script for @distroID@
|
|
|
|
#
|
|
|
|
# This file is called by startkde after the kpersonalizer has been
|
|
|
|
# executed for first access configuration
|
|
|
|
#
|
2015-01-16 13:57:13 +01:00
|
|
|
# Copyright (c) 2005-2014 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
2012-03-03 15:53:58 +01:00
|
|
|
# Copyright (c) 2007 by Davide Madrisan <davide.madrisan@gmail.com>
|
|
|
|
|
|
|
|
if [ ! -e $HOME/Desktop/.directory ]; then
|
|
|
|
|
|
|
|
case "$LANG" in
|
|
|
|
es*) LANG_ADD=es ;;
|
|
|
|
fr*) LANG_ADD=fr ;;
|
|
|
|
it*) LANG_ADD=it ;;
|
|
|
|
*) LANG_ADD=en ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -r @distrodesktopdir@/desktop-$LANG_ADD.tar.bz2 ]; then
|
|
|
|
mkdir -p $HOME/Desktop
|
|
|
|
( cd $HOME/Desktop >/dev/null
|
|
|
|
tar xjf @distrodesktopdir@/desktop-$LANG_ADD.tar.bz2 )
|
|
|
|
fi
|
|
|
|
|
|
|
|
touch $HOME/Desktop/.directory
|
|
|
|
|
|
|
|
fi
|