summarylogtreecommitdiffstats
path: root/launcher.sh
blob: ea118170a48a9545b85e763e2e72a5688c842a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
export PKGNAME=pkgname
export WINEPREFIX="$HOME"/.$PKGNAME
export WINEARCH=win32
export SOURCE=/usr/share/$PKGNAME
if [ ! -d "$WINEPREFIX" ] ; then
    winetricks winxp
    wineserver -w
    ln -s "$SOURCE"/Program\ Files/Adobe "$WINEPREFIX"/drive_c/Program\ Files/Adobe
    ln -s "$SOURCE"/Program\ Files/Common\ Files/Adobe "$WINEPREFIX"/drive_c/Program\ Files/Common\ Files/Adobe
    rm "$WINEPREFIX"/system.reg
    ln -s "$SOURCE"/system.reg "$WINEPREFIX"/system.reg
fi
WINEDEBUG=-all wine "$WINEPREFIX"/drive_c/Program\ Files/Adobe/Reader\ 11.0/Reader/AcroRd32.exe "$@"