fix crash when trying to access input devices if run without root permissions