Grabbing window props for matching is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
compizconfig-settings-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When trying to grab title of a window for matching, the following error occurs:
Traceback (most recent call last):
File "/usr/lib/
value += "%c" % int(hex, 16)
ValueError: invalid literal for int() with base 16: '"Bugs : \xe2\x80\
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-
tags: | added: precise |
tags: | added: patch |
tags: | added: running-unity |
The attachment "Patch to fix title- and window ID grabbing." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]