If I run this, the dialog boxes pop up and work, but nothing gets saved. The script ends with this message: "./qrgui: line 21: (I'm not copying the script line for line; it means the line with qrencode on it.) qrencode: command not found." I know that qrencode is installed; I just used it on the command line.

# To the extent possible under law, I waive all copyright and related or
# neighboring rights to this script. For more information see
# http://creativecommons.org/publicdomain/zero/1.0/.
# This work is published from the United States.
STRING=$(zenity --entry \
                --title="QR Encoder" \
                --text="Enter text to encode into a QR code." \
                --width=250)

PATH=$(zenity --file-selection \
              --title="Save QR Code" \
              --save \
              --confirm-overwrite)

qrencode -o $PATH "$STRING"

Reply via email to