Some stuff changed in the Ubuntu Natty version of xsetwacom's (v0.10.11) output. Fixed Rotate such that it works with this change and is backwards compatible (hopefully).
@@ -56,11 +56,10 @@
for line in process.stdout:
- # Line has format "device name with spaces TYPE"
- # We do not want the TYPE part..
- parts=line.split(' ');
- dev_name=' '.join(parts);
+ # Line has format "device-name-with-spaces many-spaces INFO"
+ # We do not want the INFO part..
+ parts=line.split(' '); # Split at many (more than one) spaces