summarylogtreecommitdiffstats
path: root/ultravnc-viewer
blob: d94b515c7b4f837526ebd5ec1aed8805ca33c171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
CONFIG_DIR="$XDG_CONFIG_HOME"
[ -z "$CONFIG_DIR" ] && CONFIG_DIR="$HOME/.config"

export WINEPREFIX="$CONFIG_DIR/ultravnc-viewer"
export WINEDLLOVERRIDES="mscoree,mshtml,winemp3.acm="

if [ ! -d "$WINEPREFIX" ] ; then
  mkdir -p "$WINEPREFIX" || exit 1
  wineboot -u
fi

wine /usr/lib/ultravnc-viewer/vncviewer.exe "$@"