My application uses libudev’s c++ api to get the serial number of hard disk of user. I need this to identify user’s identity since hard disk serial numbers are unique and can’t be changed by user.
so everything works fine in classic confinement since my snap packaged application can see the system and call libudev to get get serial number.
But when the application is packaged in strict confinement for some reasons my application not able to see the serial number if the disk. Am already having all necessary packaged to make libudev work.
is there any interface like udev that can solve this?
I used hardware-observe and now libudev working fine. But user have to connect this interface manually. There should be UI for this like android have. If some application needs permission there is a pop-up to ask user if he want to allow or not .
@keshavnrj you can also ask to have it auto-connect, using this procedure. (I don’t know what your snap does, nor how, nor if it’s a reasonable interface to autoconnect – but you can always ask )