Closed ggl closed 2 years ago
That's strange, --print-udev
should not even try to open the device :/
Does the following command work?
rivalcfg --print-debug
Can you also try?
RIVALCFG_DRY=1 rivalcfg --help
RIVALCFG_DRY=1 rivalcfg --print-udev
It only tries to open the device when you have a compatible mouse plugged in and no udev rules installed.
With --print-debug
and any other command including --help
it still tries to open the device. The trace message is the same every time.
RIVALCFG_DRY=1 rivalcfg --help
RIVALCFG_DRY=1 rivalcfg --print-udev
The above work fine and print everything as intended.
Ok, I will look at that...
To solve your issue:
RIVALCFG_DRY=1 rivalcfg --print-udev
command to the /etc/udev/rules.d/99-steelseries-rival.rules
filesudo udevadm trigger
command:)
Thank you. I managed to fix it before reporting the bug but it took a while until I found the RIVALCFG_DRY=1 environment variable.
Ok, thank you again for your repport.
I will try to fix permission issues when Rivalcfg is used with debug / help / version options :)
I made a fix on master
. Now rivalcfg should not try to open devices when not needed, and the error is catched with -h
and --help
:)
Rivalcfg dumps trace with mouse plugged in and udev rules not installed. As a consequence --print-udev, --help and the other help switches cannot be displayed. I installed it into my home directory, so
sudo rivalcfg --update-udev
does not work since root env doesn't know about the local python lib path.