Closed pythonpro closed 12 years ago
Ha... oops... :wink:
I didn't saw your issue. So I will fix it too.
Seems not related to Ubuntu Natty, but in the fact that your device name and my VirtualBox device name contains a slash (/).
I'm fixing it...
Could you please follow instructions from the Wiki page in order to test the latest version ? Also, if it's working, close the issue, thanks.
Thanks
Updated code from github. For now it doesn't crash while starting, but other issues are present:
Starting the app: $ ./bin/naturalscrolling Warning: The XID of the device with name A4Tech PS/2+USB Mouse wasn't found
Switching on natural scrolling in tray icon contex menu: Traceback (most recent call last): File "/home/tier/src/naturalscrolling/naturalscrolling/indicatormenu.py", line 104, in on_natural_scrolling_toggled GConfSettings().key(device_xid).set_value(enabled) File "/home/tier/src/naturalscrolling/naturalscrolling_lib/gconfsettings.py", line 221, in key return GConfKey(key, self.python_type_to_gconf_type(type)) File "/home/tier/src/naturalscrolling/naturalscrolling_lib/gconfsettings.py", line 124, in init self.type = self.gconf.get(self.__key).type AttributeError: 'NoneType' object has no attribute 'type'
And finally, debugging output: $ ./bin/naturalscrolling -d
PyUDev
event1 Power Button
event0 Power Button
event2 Microsoft Natural Keyboard Elite
event3 A4Tech PS/2+USB Mouse
event1 Power Button
event0 Power Button
event2 Microsoft Natural Keyboard Elite
event3 A4Tech PS/2+USB Mouse
event3 A4Tech PS/2+USB Mouse
event3 A4Tech PS/2+USB Mouse
XinputWarper
1 device(s) found
Device "A4Tech PS/2+USB Mouse" has XID None
⎜ ↳ A4Tech PS/2+USB Mouse id=9 [slave pointer (2)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Microsoft Natural Keyboard Elite id=8 [slave keyboard (3)]
GConfSettings
Btw, for my Logitech mouse everything works fine except for "Start at login" setting, and after manual start - natural scrolling is switched off - I have to turn checkbox again every time I start the app.
Btw, for my Logitech mouse everything works fine except for "Start at login" setting...
This should be fixed in the latest version from master branch.
Please close the issue if this is the case. Thanks
The app always crashes with one of my mice. $ ./bin/naturalscrolling Traceback (most recent call last): File "./bin/naturalscrolling", line 46, in
naturalscrolling.main()
File "/home/tier/src/naturalscrolling/naturalscrolling/init.py", line 46, in main
Indicator().start()
File "/home/tier/src/naturalscrolling/naturalscrolling/indicator.py", line 43, in init
GConfSettings().initialize(udev_observator.gather_devices())
File "/home/tier/src/naturalscrolling/naturalscrolling_lib/gconfsettings.py", line 209, in initialize
GConfKey(device.keys()[0], gconf.VALUE_BOOL).find_or_create()
File "/home/tier/src/naturalscrolling/naturalscrolling_lib/gconfsettings.py", line 114, in init
if key.startswith(GCONF_ROOT_DIR):
AttributeError: 'NoneType' object has no attribute 'startswith'
Debug output: $ ./bin/naturalscrolling -d
PyUDev
All devices:
Input devices:
ID_INPUT_MOUSE and input devices:
ID_INPUT_MOUSE devices:
XinputWarper
- Devices:
- Xinput list:
- All Keys: