desktop-base-openmamba/kde/scripts/startkde.firsttime.in

31 lines
859 B
Plaintext
Raw Permalink Normal View History

2011-04-26 13:25:32 +02:00
#!/bin/bash
#
# startkde.firsttime - KDE firsttime script for @distroID@
#
# This file is called by startkde after the kpersonalizer has been
# executed for first access configuration
#
# Copyright (c) 2005 by Silvan Calarco <silvan.calarco@qilinux.it>
# Copyright (c) 2007 by Davide Madrisan <davide.madrisan@gmail.com>
case "$LANG" in
es*) LANG_ADD=es ;;
fr*) LANG_ADD=fr ;;
it*) LANG_ADD=it ;;
*) LANG_ADD=en ;;
esac
kdeprefix=$(kde-config --prefix 2>/dev/null) || exit 1
if [ -r @distrokdedir@/desktop-$LANG_ADD.tar.bz2 ]; then
mkdir -p $HOME/Desktop
( cd $HOME/Desktop >/dev/null
cp -a ${kdeprefix}/share/apps/kdesktop/DesktopLinks/* .
tar xjf @distrokdedir@/desktop-$LANG_ADD.tar.bz2 )
fi
# launch keyboard configuration tool for english (international) version
[ "$LANG_ADD" = "en" ] && kcmshell keyboard_layout
exit 0