summarylogtreecommitdiffstats
path: root/sumatrapdf.sh
blob: 1197a3e3b70bc0e848fdef7b6451bf0952a9dbc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/sumatrapdf"
# use this directory to store wine environment
export WINEPREFIX="$CONFIG_DIR"/wine
# initialize custom wine environment
if [ ! -d $CONFIG_DIR ] ; then
  mkdir -p $CONFIG_DIR
  mkdir -p "$CONFIG_DIR"/wine
  wineboot -u
fi

WINEDEBUG=-all wine /usr/share/sumatrapdf/sumatrapdf.exe -appdata "$CONFIG_DIR" "$@"