Fix checking if ynab is installed
Instead of checking if ~/.ynab4 exists check if the actual ynab-wine-installation contains the YNAB 4.exe
This commit is contained in:
parent
8729427f6f
commit
8bf1d220f1
9
ynab4
9
ynab4
@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
export WINEARCH=win64 WINEPREFIX="$HOME/.ynab4/wine"
|
export WINEARCH=win64 WINEPREFIX="$HOME/.ynab4/wine"
|
||||||
|
|
||||||
if [ ! -d "$HOME"/.ynab4 ] ; then
|
ynab_wine="${HOME}/.ynab4/wine"
|
||||||
mkdir -p "$HOME"/.ynab4/wine || exit 1
|
mkdir -p "${ynab_wine}" || exit 1
|
||||||
|
|
||||||
|
ynab_path="${ynab_wine}/drive_c/Program Files (x86)/YNAB 4/YNAB 4.exe'
|
||||||
|
if [ ! -f "$ynab_path" ] ; then
|
||||||
wine /usr/share/ynab4/Setup.exe || exit 1
|
wine /usr/share/ynab4/Setup.exe || exit 1
|
||||||
winetricks corefonts || exit 1
|
winetricks corefonts || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wine "$HOME"/.ynab4/wine/drive_c/Program\ Files\ \(x86\)/YNAB\ 4/YNAB\ 4.exe
|
wine "$ynab_path"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user