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

Commit 594abe6

Browse files
committed
v0.6: catch fixed paths for Plist key JVMWorkDir (thanks @dpolivaev)
see d6516e9d52 3032b30daf57c33581f0c02f1d0776#commitcomment-6860329
1 parent 362c1aa commit 594abe6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ An AppleScript dialog would be nice to prevent Java execution if the requirement
126126
ChangeLog
127127
---------
128128

129+
### v0.6 *(2014-07-12)*
130+
* also catch fixed paths for Plist key `JVMWorkDir` *(thanks @dpolivaev)*
131+
129132
### v0.5 *(2014-06-30)*
130133
* bugfix for pathes / App bundles containing spaces (#2)
131134

src/universalJavaApplicationStub

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# #
1414
# @author Tobias Fischer #
1515
# @url https://github.com/tofi86/universalJavaApplicationStub #
16-
# @date 2014-06-30 #
17-
# @version 0.5 #
16+
# @date 2014-07-12 #
17+
# @version 0.6 #
1818
# #
1919
# #
2020
##################################################################################
@@ -123,6 +123,9 @@ if [ -d "${AppleJavaFolder}" ]; then
123123
elif [ "${JVMWorkDir}" == "\$USER_HOME" ]; then
124124
WorkingDirectory="~"
125125

126+
elif [[ ! -z ${JVMWorkDir} ]]; then
127+
WorkingDirectory="${JVMWorkDir}"
128+
126129
else
127130
# root is the standard WorkingDirectory when the script is started
128131
WorkingDirectory="/"

0 commit comments

Comments
 (0)