Skip to content

Commit

Permalink
Use desktop file name to determine the correct Wine prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebababi committed Aug 12, 2021
1 parent 948b272 commit 491da21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions data/AppDirTool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ function appdir.test(){
export HOME=$(mktemp -d)
export XDG_CONFIG_HOME="${HOME}/config"
export XDG_DATA_HOME="${HOME}/data"
export WINEPREFIX="${XDG_CONFIG_HOME}/${BOTTLE_NAME}"
export LANG=en.UTF-8
echo
echo HOME=${HOME}
echo XDG_CONFIG_HOME=${XDG_CONFIG_HOME}
echo XDG_DATA_HOME="${XDG_DATA_HOME}"
echo WINEPREFIX="${XDG_CONFIG_HOME}/${BOTTLE_NAME}"
echo LANG=en.UTF-8
echo
echo "[ 2/3 ] Initializing test..."
echo
Expand Down
3 changes: 1 addition & 2 deletions data/WineAppRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ HERE="$(dirname "$(readlink -f "${0}")")"
}

export WINEARCH=win32
export WINEPREFIX="${XDG_CONFIG_HOME}/SumatraPDF"

export WINEPREFIX="${XDG_CONFIG_HOME}/$(basename "$(ls "$(dirname "$(readlink -f "${0}")")"/*.desktop)" .desktop)"

# Some Languages uses symbols that breakes Wine
export LANG=en.UTF-8
Expand Down

0 comments on commit 491da21

Please sign in to comment.