1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

Check for USB permission and SSE 4.2 instructions

This commit is contained in:
Jon Beniston 2024-03-12 11:59:52 +00:00
parent e3f9386aa4
commit 4b2369e70a

View File

@ -650,5 +650,15 @@ fi
# Qt: Session management error: None of the authentication protocols specified are supported
unset SESSION_MANAGER
# Check we have USB access
if ! snapctl is-connected raw-usb ; then
notify-send -u critical -a SDRangel "SDRangel does not have USB access." "To enable, run:\n\nsnap connect sdrangel:raw-usb"
fi
# Check we have SSE 4.2
if ! cat /proc/cpuinfo | grep sse4_2 > /dev/null ; then
notify-send -u critical -a SDRangel "SSE 4.2 support not detected in your CPU." "SDRangel may crash."
fi
# Safe to enable soapy, as we only include soapy remote
exec $SNAP/opt/install/sdrangel/bin/sdrangel --soapy "$@"