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

Commit 7d18159

Browse files
committed
enable drag&drop to the dock icon
thanks to Thomas Tempelmann (@tempelmann) and Joe Ranieri on the Apple Mailing List Archive: http://lists.apple.com/archives/java-dev/2012/Nov/msg00019.html
1 parent becb9ac commit 7d18159

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ Missing Features
114114
----------------
115115

116116
At the moment, there's no support for
117-
* File drag & drop to the dock icon
118-
* *personal reminder: files aren't passed as argument but on the drop clipboard. therefore probably not fixable...*
119117
* required JVM architecture (like `x86_64`, etc.)
120118
* required JVM version (like `1.6+`, etc.)
121119
* etc...

universalJavaApplicationStub

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# #
1515
# @author Tobias Fischer #
1616
# @url https://github.com/tofi86/universalJavaApplicationStub #
17-
# @date 2014-03-12 #
18-
# @version 0.2 #
17+
# @date 2014-03-16 #
18+
# @version 0.3 #
1919
# #
2020
# #
2121
##################################################################################
@@ -174,6 +174,8 @@ if [ ${JVMMainClass} == "" ]; then
174174
# check whether $JAVACMD is executable
175175
elif [ -x "$JAVACMD" ]; then
176176

177+
# enable drag&drop to the dock icon
178+
export CFProcessPath="$0"
177179

178180
# execute Java and set
179181
# - classpath

0 commit comments

Comments
 (0)