aboutsummaryrefslogtreecommitdiff
path: root/run.sh
blob: 39d61ff495e5c2066dda28fd1a3090e2ddc3ea4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

script_path=`readlink -f $0`
script_dir=`dirname $script_path`
cd "$script_dir"
if [ ! -f ~/.local/share/fonts/Lato-Regular.ttf ]; then
    mkdir -p ~/.local/share/fonts
    cp ./fonts/Lato-Regular.ttf ~/.local/share/fonts/Lato-Regular.ttf
    fc-cache
fi
if [ ! -f ~/.local/share/fonts/Lato-Bold.ttf ]; then
    mkdir -p ~/.local/share/fonts
    cp ./fonts/Lato-Bold.ttf ~/.local/share/fonts/Lato-Bold.ttf
    fc-cache
fi
platform=`sibs platform`
set GDK_SYNCHRONIZE
export LD_PRELOAD=/lib/libSegFault.so
env GTK_THEME="css/style.css" ./sibs-build/$platform/debug/dchat --g-fatal-warnings