Bug 1897932

Summary: JS ERROR: Error: Extension point conflict: there is already a status indicator for role ...
Product: Red Hat Enterprise Linux 8 Reporter: Luis <lou_bridges>
Component: gnome-shell-extensionsAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Martin Krajnak <mkrajnak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.2CC: jadahl, mkrajnak
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gnome-shell-extensions-3.32.1-19.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1967259 (view as bug list) Environment:
Last Closed: 2021-11-09 19:33:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1967259    

Description Luis 2020-11-15 17:05:01 UTC
Description of problem:
The following error message is registered in the /var/log/messages when my application tries to add an icon into the systray for the 2nd time:

JS ERROR: Error: Extension point conflict: there is already a status indicator for role xxxx-yyyyyyyy#012addToStatusArea@resource:///org/gnome/shell/ui/panel.js:1164:19#012_onTrayIconAdded@/usr/share/gnome-shell/extensions/top-icons.github.com/extension.js:67:9
Version-Release number of selected component (if applicable):
8.

This happens with the top-icons extension provided by gnome-shell-extension-top-icons-3.32.1-10.el8.noarch.

How reproducible:
I need to run two instances of the same app simultaneously. 
Each app instance is launched with their own parameters (configuration directory, etc,).
The 1st app instance successfully registers/adds the icon into the systray.
But the 2nd app instance fails to register/add the icon with the error message stated above.

Steps to Reproduce:
1.Launch the 1st app instance.
2.Launch the 2nd app instance.

Actual results:
1. The 1st app instance icon is shown in the systray.
2. The 2nd app instance icon is NOT shown in the systray.

Expected results:
Both app instances should successfully register/add the icon into the systray.

Additional info:
The same app works fine on RHEL 7.x (the only one I've not tested was 7.9).

And it works fine on RHEL 8.2 as well if I use any of the following two gnome extensions instead of the system default top-icons extension provided by gnome-shell-extension-top-icons-3.32.1-10.el8.noarch:

https://extensions.gnome.org/extension/1674/topiconsfix/
https://extensions.gnome.org/extension/1031/topicons/

Comment 1 Florian Müllner 2021-06-01 15:14:56 UTC
Should be pretty straight-forward to fix.

Comment 2 Martin Krajnak 2021-06-04 12:06:23 UTC
Thanks for fix Florian, I tested on Hexchat, 

I ran two instances of hexchat:

before the update I could see only 1 icon,
after the update I could see 2 icons, even 3 instances and 3 icons,  

gnome-shell-extension-top-icons-3.32.1-19.el8.noarch.rpm

Comment 7 errata-xmlrpc 2021-11-09 19:33:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4381