summarylogtreecommitdiffstats
path: root/onelife
blob: 2ea5405c3239f5b943f23b86f15d1fbf036c155f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if readlink $0 > /dev/null; then
   DIR=$(dirname $(readlink $0))
else
   DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
fi

if ! [[ -d ~/.config/onelife/settings ]]; then
   mkdir -p ~/.config/onelife/settings >/dev/null || true
fi

cp -n /opt/onehouronelife-bin/settings_default/* ~/.config/onelife/settings/
find ~/.config/onelife -depth -maxdepth 1 -type l -delete
ln -st ~/.config/onelife/ $DIR/*
cd ~/.config/onelife
./OneLifeApp