+SESSION_ID=""
+if [ "$1" = "--ask-session-id" ]
+then
+ shift
+ SESSION_ID=$(gxmessage -entry -center -wrap -buttons "OK:0,Cancel:1" -default "OK" \
+ -name "popfile-link" -title "POPFile session ID" "Type in the ID of a running POPFile session to use")
+ test -z "$SESSION_ID" -o $? -ne 0 && \
+ exit 0
+fi
+