#!/bin/sh -e

[ -n "$GLOBAL_HOMEROS" ] || exit 0
[ -n "$GLOBAL_HOMEROS_FRIEND" ] && exit 0

cp -r \
/etc/skel.homeros/.fetchmailrc \
/etc/skel.homeros/.gconf \
/etc/skel.homeros/.orca  \
/home/altlinux/

/bin/mkdir -p /home/altlinux/Desktop

/bin/cp -r \
/usr/share/applications/firefox.desktop \
/usr/share/applications/oowriter.desktop \
/usr/share/applications/oocalc.desktop \
/home/altlinux/Desktop/

subst s/'orca.settings.showMainWindow = True'/'orca.settings.showMainWindow = False'/ /home/altlinux/.orca/user-settings.py

chown -R altlinux:altlinux /home/altlinux/
