mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
fix: restrict supported screenshot tools
This commit is contained in:
parent
276109006a
commit
004cb73dbf
@ -126,6 +126,14 @@ if test -n "${dialog_cmd_wanted}"; then
|
||||
echo "[ERROR] ${msg}"
|
||||
exit 1
|
||||
fi
|
||||
case "${dialog_cmd_wanted}" in
|
||||
kdialog|zenity);;
|
||||
*)
|
||||
msg="wanted dialog program unsupported: ${dialog_cmd_wanted}"
|
||||
echo "[ERROR] ${msg}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
dialog_cmd="${dialog_cmd_wanted}"
|
||||
else
|
||||
if command -v kdialog >/dev/null; then
|
||||
@ -150,6 +158,14 @@ if test -n "${screenshot_cmd_wanted}"; then
|
||||
esac
|
||||
exit 1
|
||||
fi
|
||||
case "${screenshot_cmd_wanted}" in
|
||||
kdialog|zenity);;
|
||||
*)
|
||||
msg="wanted screenshot program unsupported: ${screenshot_cmd_wanted}"
|
||||
echo "[ERROR] ${msg}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
screenshot_cmd="${screenshot_cmd_wanted}"
|
||||
else
|
||||
if command -v spectacle >/dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user