cemmanouilidis / naturalscrolling

Natural Scrolling for Linux
GNU General Public License v3.0
69 stars 11 forks source link

app crash #17

Closed pythonpro closed 12 years ago

pythonpro commented 12 years ago

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

zedtux commented 12 years ago

Ha... oops... :wink:

I didn't saw your issue. So I will fix it too.

zedtux commented 12 years ago

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...

zedtux commented 12 years ago

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

pythonpro commented 12 years ago

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

pythonpro commented 12 years ago

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.

zedtux commented 12 years ago

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