If --prompt is passed in as argument then summon a yad file input.
This commit is contained in:
parent
835e5db92f
commit
1fac9b9378
@ -1,2 +1,10 @@
|
||||
#!/bin/sh
|
||||
java -jar @JAR_PATH@ $@
|
||||
JAR_PATH="@JAR_PATH@"
|
||||
|
||||
if [ $1 == "--prompt" ]; then
|
||||
RESULT=$(java -jar "$JAR_PATH" $(yad --file))
|
||||
else
|
||||
RESULT=$(java -jar "$JAR_PATH" $@)
|
||||
fi
|
||||
|
||||
xdg-open $RESULT
|
||||
|
Loading…
x
Reference in New Issue
Block a user