Public bug reported:

When trying to grab title of a window for matching, the following error
occurs:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ccm/Widgets.py", line 1108, in 
grab_value
    value += "%c" % int(hex, 16)
ValueError: invalid literal for int() with base 16: '"Bugs : 
\xe2\x80\x9ccompizconfig-settings-manager\xe2\x80\x9d package : Ubuntu - 
Mozilla Firefox"'

Looking at ccm/Widgets.py, it appears that it assumes xprop output of
UTF-8 strings is always in hex char list format. This is not true for
the xprop that comes with Ubuntu 12.04 at least. In an UTF-8 locale, it
will format UTF-8 string props as quoted strings by default.

Also, aside from not being a very useful feature, grabbing of window ID
is not working, and the cause looks like a simple bug in ccm/Widgets.py
as well.

Attaching a minimal patch for compizconfig-settings-manager 0.9.5.92. It
forces the format of _WM_NET_NAME to hex char list in xprop output, like
the Python code parsing it expects. The patch also alters prefix "id" to
"xid" in the same method, so window ID grab can be triggered.

** Affects: compizconfig-settings-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1038071

Title:
  Grabbing window props for matching is broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compizconfig-settings-manager/+bug/1038071/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to