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 1666597 - Cannot enable or disable system tray icon
Summary: Cannot enable or disable system tray icon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virt-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-16 07:12 UTC by zonglin jiang
Modified: 2020-11-14 07:49 UTC (History)
10 users (show)

Fixed In Version: virt-manager-2.2.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 21:19:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3464 0 None None None 2019-11-05 21:19:29 UTC

Description zonglin jiang 2019-01-16 07:12:00 UTC
Description of problem:
Cannot enable or disable system tray icon

Version-Release number of selected component (if applicable):
virt-manager-2.0.0-2.el8.noarch
qemu-kvm-2.12.0-51.module+el8+2608+a17c4bfe.x86_64
libvirt-4.5.0-17.module+el8+2625+db702f9d.x86_64
python3-libvirt-4.5.0-1.module+el8+2529+a9686a4d.x86_64
kernel-4.18.0-56.el8.x86_64

How reproducible
100%

Steps to Reproduce
1. Launch virt-manager: #virt-manager
2. Click on one connection.
3. Click Edit->Preferences.
4. Go to General tab, and check Enable system tray icon.
5. Uncheck Enable system tray icon.

Actual results:
virtual machine manager icon cannot appear in the bottom right corner of the navigation bar

Expected results
1. Verify that virtual machine manager icon appears in the bottom right
corner of the navigation bar.
2. Verify that virtual machine manager icon disappear.

Comment 1 Cole Robinson 2019-01-16 14:54:52 UTC
If you're on wayland, it's not going to work, which is a deliberate gtk/wayland design decision. We should probably disable the virt-manager option in that case.

Comment 2 Cole Robinson 2019-06-15 00:06:43 UTC
Upstream now:

commit 147a3b4790b9c7bf47271a01f23ef08aa527479d (HEAD -> master)
Author: Cole Robinson <crobinso>
Date:   Fri Jun 14 20:04:35 2019 -0400

    preferences: Disable systray option if we know it won't work
    
    Basically on wayland, if appindicator isn't available
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1666597

Comment 4 zhoujunqin 2019-07-26 08:44:56 UTC
Try to verify this bug with build:
virt-manager-2.2.1-1.el8.noarch
virt-install-2.2.1-1.el8.noarch
libvirt-4.5.0-24.module+el8.1.0+3205+41ff0a42.x86_64
qemu-kvm-2.12.0-77.module+el8.1.0+3382+49219945.x86_64

Steps:
Scenario-1 Select Standard(Wayland display server) when you login rhel8 system

# echo $XDG_SESSION_TYPE
wayland

1.1 Launch virt-manager: #virt-manager
1.2 Click on one connection.
1.3 Click Edit->Preferences.
1.4 Go to General tab, and check 'Enable system tray icon' status.

Result: systray option is disabled, and when you move the cursor to on it, it shows "No appindicator listener found, which is required on wayland.", it's as expected.


Scenario-2 Select Classic(X11 display server)

# echo $XDG_SESSION_TYPE
x11

2.1 Launch virt-manager: #virt-manager
2.2 Click on one connection.
2.3 Click Edit->Preferences.
2.4 Go to General tab, and check 'Enable system tray icon' status.
-Result: systray option is enable by default, and virtual machine manager icon appears in the bottom right corner of the navigation bar.
2.5 Uncheck Enable system tray icon.
-Result: virtual machine manager icon disappear, it's as expected.


Scenario-3 Select Classic(Wayland display server)
Result: Get same result with Scenario-1

Scenario-4 Select Custom
# echo $XDG_SESSION_TYPE
x11

Result: But there is no virtual machine manager icon appears in the bottom right corner of the navigation bar when I check on "Enable system tray icon".

Scenario-5 Select Standard(X11 display server) on Xorg
Result: Get same result with Scenario-4

Hi Pavel, 
From testing Scenario-1 to Scenario-3, i get expected results, so please help me have a look of Scenario-4 and Scenario-5, i don't why systray option doesn't work, thanks.

Comment 5 zhoujunqin 2019-08-27 09:42:23 UTC
Hi Pavel,
Please help me have a look of Comment 4 issue, thanks.
Do we need cover such scenarios while we verify this bug?

BR,
juzhou.

Comment 6 Pavel Hrdina 2019-08-27 12:22:45 UTC
Hi Junqin,

I was investigating the issue since yesterday.  So far I've come to the state that
in all the Scenario-2, Scenario-4 and Scenario-5 (X11 sessions) the systray is there
but for some reason the icon is invisible, but if I click the area where the icon shoul
appear it works.  If I lock the screen and unlock it in all of the X11 scenarios the
systray icon appears.  I'm testing it in VM, I'll try to test it on real HW as well
and I'll try to debug the issue why the icon is not there since beginning.

I'm not sure whether we need to cover all scenarios as I don't know what is supported
but all of them are mentioned in our documentation [1].

[1] <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/desktop-and-graphics_considerations-in-adopting-rhel-8>

Comment 7 Pavel Hrdina 2019-08-27 15:12:44 UTC
I've done a bit more testing and research and it looks like that the "missing" icon in systray
might be issue in gnome-shell-extensions component as it provides gnome-shell-extension-top-icons
package.

This is how it works in my RHEL-8 installation:

1. Make sure that "Enable system tray icon" is enabled and quit virt-manager.

2. Start virt-manager again, there is no visible icon on the right side of system tray
   but if I click to the place where it should be it will hide/show virt-manager window.

3. In virt-manager go to "Edit->Preferences", disable and enable the "Enable system tray icon"
   again and now the icon will appear in system tray.

4. Now that the icon is visible quit virt-manager and start it again and the icon will be
   again "invisible" but still clickable.

This happens for all X11 sessions.


The conclusion:

On wayland the systray icon will not work.  On X11 it should work but there seems to be a bug
in gnome-shell-extensions which provides gnome-shell-extension-top-icons.  I've tried it with
pidgin which adds itself into system tray as well and it behaves the same that the icon is there
but invisible.

This bug can be verified by checking that on wayland the "Enable system tray icon" is not clickable
and tooltip explains why and another bug should be open to track the gnome-shell-extensions issue.

Comment 8 zhoujunqin 2019-08-28 10:02:44 UTC
Thanks for Pavel's investigation, i file a new bug 1746372 to track the gnome-shell-extensions issue.
And move this bug from ON_QA to VERIFIED status, thanks.

Comment 10 errata-xmlrpc 2019-11-05 21:19:13 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, 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-2019:3464


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