piecannon/desktop/piecannon.in

11 lines
178 B
Plaintext
Raw Normal View History

#!/bin/sh
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