2023-05-21 22:24:57 +09:00
|
|
|
#!/bin/bash
|
|
|
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/sumatrapdf"
|
2023-10-30 17:43:11 +09:00
|
|
|
# use this directory to store wine environment
|
|
|
|
export WINEPREFIX="$CONFIG_DIR"/wine
|
|
|
|
# initialize custom wine environment
|
2023-05-21 22:24:57 +09:00
|
|
|
if [ ! -d $CONFIG_DIR ] ; then
|
|
|
|
mkdir -p $CONFIG_DIR
|
2023-10-30 17:43:11 +09:00
|
|
|
mkdir -p "$CONFIG_DIR"/wine
|
|
|
|
wineboot -u
|
2023-05-21 22:24:57 +09:00
|
|
|
fi
|
2023-10-30 17:43:11 +09:00
|
|
|
|
|
|
|
WINEDEBUG=-all wine /usr/share/sumatrapdf/sumatrapdf.exe -appdata "$CONFIG_DIR" "$@"
|