RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 976440 - gnome-shell does something wrong with images (breaking pyatspi .get_image*() methods)
Summary: gnome-shell does something wrong with images (breaking pyatspi .get_image*() ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-shell
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florian Müllner
QA Contact: Desktop QE
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-20 14:55 UTC by Matěj Cepl
Modified: 2019-09-11 18:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-11 18:05:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
testing script (2.00 KB, text/x-python)
2013-06-20 14:55 UTC, Matěj Cepl
no flags Details
universal testing script (561 bytes, text/x-python)
2013-06-20 15:05 UTC, Matěj Cepl
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 702753 0 None None None Never

Description Matěj Cepl 2013-06-20 14:55:26 UTC
Created attachment 763487 [details]
testing script

Description of problem:
When trying to discover which notification is urgent and which is not, I try to investigate which icon is shown in the gnome-shell. With the attached script I generate a notification via libnotify and then I try to investigate it with pyatspi (usually I would use dogtail, but in order to eliminate its possible guilt in the action, I am using only plain pyatspi). The result of running this script on my system is

matej@wycliff: libnotify (rhel-7 *%)$ ./sample_reproducer.py 
DEBUG:<module>:found 173 icon elements.
DEBUG:<module>:images = None
('summary', <Accessible object at 0x7f67c9807910 (AtspiAccessible at 0x10fe5d0)>)
matej@wycliff: libnotify (rhel-7 *%)$ 

I don't think that line

DEBUG:<module>:images = None

is right. In order to eliminate possible bug with pyatspi I have also created this simple testing script:

#!/usr/bin/python
# -*- coding: utf-8 -*-
import pyatspi, sys
from pyatspi.utils import findAllDescendants, findDescendant


def isAppNamed(node):
    return (node.getRoleName() == 'application') and \
           (node.name == appname)

appname = sys.argv[1]

root = pyatspi.Registry.getDesktop(0)
app = findDescendant(root, isAppNamed, breadth_first=True)
print("app = %s" % app)

icons = findAllDescendants(app, lambda x: x.getRoleName() == 'image')

print("found %d icon elements." % len(icons))

for ico in icons:
    print("images = %s" % icons[0].get_image())

When I run it against for example Firefox (e.g., running ./app_reproducer.py Firefox) I get number of informations about images.

Therefore the only culprit seems to me to be gnome-shell which somehow doesn't provide to pyatspi proper information. That unfortunately breaks my QA efforts.

Version-Release number of selected component (if applicable):
pyatspi-2.8.0-2.el7.noarch
gnome-shell-3.8.3-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.run the above shown script for Firefox to see pyatspi API is working
2.run ./sample_reproducer.py
3.

Actual results:
see above

Expected results:
the .get_icon*() methods should return proper data for the icons.

Additional info:

Comment 1 Matěj Cepl 2013-06-20 15:05:56 UTC
Created attachment 763489 [details]
universal testing script

Of course the testing script I have pasted into the text of the bug has a bug itself. This is a corrected version.

Comment 3 RHEL Program Management 2014-03-22 06:46:09 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.


Note You need to log in before you can comment on or make changes to this bug.