Grabbing window props for matching is broken

Bug #1038071 reported by Øyvind Stegard
8
This bug affects 1 person
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/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.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :
tags: added: precise
tags: added: patch
tags: added: running-unity
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in compizconfig-settings-manager (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.