Skip to content

Commit 281911b

Browse files
authored
Use notify-send to warn the user if udev rule isn't set
1 parent 11a106e commit 281911b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

debian/AppRun

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if [ ! -f "/etc/udev/rules.d/53-adi-m1k-usb.rules" ]; then
77
echo "/etc/udev/rules.d/53-adi-m1k-usb.rules file not found!"
88
echo "Ignore if udev is not supported by your system"
99
echo "To fix this, rerun this command with --getudev"
10+
notify-send -u critical "/etc/udev/rules.d/53-adi-m1k-usb.rules file not found! To fix this, rerun this command with --getudev for the first time when setting up" || true # Send a user prompt but ignore errors, in case it doesn't exist
1011
fi
1112

1213
if [ "$1" = '--getudev' ]; then

0 commit comments

Comments
 (0)