mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-06 13:14:32 -04:00
fix: restrict supported screenshot tools
This commit is contained in:
parent
276109006a
commit
004cb73dbf
1 changed files with 16 additions and 0 deletions
|
@ -126,6 +126,14 @@ if test -n "${dialog_cmd_wanted}"; then
|
||||||
echo "[ERROR] ${msg}"
|
echo "[ERROR] ${msg}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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}"
|
dialog_cmd="${dialog_cmd_wanted}"
|
||||||
else
|
else
|
||||||
if command -v kdialog >/dev/null; then
|
if command -v kdialog >/dev/null; then
|
||||||
|
@ -150,6 +158,14 @@ if test -n "${screenshot_cmd_wanted}"; then
|
||||||
esac
|
esac
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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}"
|
screenshot_cmd="${screenshot_cmd_wanted}"
|
||||||
else
|
else
|
||||||
if command -v spectacle >/dev/null; then
|
if command -v spectacle >/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue