If --prompt is passed in as argument then summon a yad file input.

This commit is contained in:
Adrian Kuschelyagi Malacoda 2021-10-07 19:58:36 -05:00
parent 835e5db92f
commit 1fac9b9378

View File

@ -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