Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 7237324

Browse files
committed
use $HOME instead of ~ to set the users home directory // fixes #11
1 parent b912b4f commit 7237324

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/universalJavaApplicationStub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if [ $exitcode -eq 0 ]; then
129129
WorkingDirectory="${AppPackageFolder}"
130130

131131
elif [ "${JVMWorkDir}" == "\$USER_HOME" ]; then
132-
WorkingDirectory="~"
132+
WorkingDirectory="$HOME"
133133

134134
elif [[ ! -z ${JVMWorkDir} ]]; then
135135
WorkingDirectory="${JVMWorkDir}"
@@ -145,7 +145,7 @@ if [ $exitcode -eq 0 ]; then
145145

146146
APP_PACKAGE="${AppPackageFolder}"
147147
JAVAROOT="${AppleJavaFolder}"
148-
USER_HOME="`eval echo ~`"
148+
USER_HOME="$HOME"
149149

150150
# read the MainClass name
151151
JVMMainClass=`/usr/libexec/PlistBuddy -c "print :Java:MainClass" "${InfoPlistFile}" 2> /dev/null`

0 commit comments

Comments
 (0)