Bug 20680 - Mageia Update applet does not appear in GNOME legacy tray when running on Wayland
Summary: Mageia Update applet does not appear in GNOME legacy tray when running on Way...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-04-15 23:01 CEST by Martin Whitaker
Modified: 2019-01-27 23:39 CET (History)
2 users (show)

See Also:
Source RPM: mgaonline
CVE:
Status comment:


Attachments

Description Martin Whitaker 2017-04-15 23:01:17 CEST
After the notification that updates are available, the Mageia Update applet should be added to the legacy tray (which can be opened by hovering the mouse in the bottom left corner). This works when running GNOME on Xorg, but not when running GNOME on Wayland (the default).
Marja Van Waes 2017-04-16 11:40:59 CEST

Assignee: bugsquad => mageiatools
Source RPM: (none) => mgaonline
CC: (none) => marja11

Comment 1 Martin Whitaker 2017-05-13 20:54:48 CEST
This is another one that can be fixed with 'GDK_BACKEND=x11'. This works:

--- /usr/bin/mgaapplet	2017-03-13 17:24:33.000000000 +0000
+++ /usr/bin/mgaapplet	2017-05-13 19:51:53.012076594 +0100
@@ -30,6 +30,7 @@
 use feature 'state';
 
 BEGIN { unshift @::textdomains, 'mgaonline' }
+BEGIN { $ENV{GDK_BACKEND} = 'x11' if exists $ENV{WAYLAND_DISPLAY} }
 
 use mygtk3 qw(gtknew); #- do not import gtkadd which conflicts with ugtk3 version
 use ugtk3 qw(:all);

Keywords: (none) => PATCH

Comment 2 Frédéric "LpSolit" Buclin 2017-05-13 20:57:29 CEST
Just wondering: is X11 mandatory in Mageia 6? If not, how is such a fix supposed to work if X11 is not installed?
Comment 3 Martin Whitaker 2017-05-13 21:14:16 CEST
(In reply to Frédéric Buclin from comment #2)
> Just wondering: is X11 mandatory in Mageia 6? If not, how is such a fix
> supposed to work if X11 is not installed?

Seems so:

% urpmq --requires-recursive gdm | grep x11-server
x11-server-common
x11-server-xorg
x11-server-xwayland
% urpmq --requires-recursive sddm | grep x11-server
x11-server-common
x11-server-xorg
% urpmq --requires-recursive lightdm | grep x11-server
x11-server-common
x11-server-xorg
% urpmq --requires-recursive xdm | grep x11-server
x11-server-common
x11-server-xorg

and I copied that line from drakconf ;-)

But something to bear in mind for the future.
Comment 4 Frédéric "LpSolit" Buclin 2017-05-13 21:26:18 CEST
Just wondering: do you see the same problem with net_applet? They should behave the same way.
Comment 5 Martin Whitaker 2017-05-13 21:29:45 CEST
No, but only because it's not installed on the GNOME Live DVD. It conflicts with NetworkManager, and NetworkManager is integrated into GNOME Shell.
Christian Lohmaier 2017-08-14 17:41:15 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=21535

Comment 6 Christian Lohmaier 2017-08-14 17:53:20 CEST
.oO("if exists $hash{KEY}" likely is not what you want, just "if $hash{KEY}" or "if defined $hash{KEY}" should be more like it)

CC: (none) => lohmaier+mageia

Comment 7 Martin Whitaker 2017-08-14 19:16:07 CEST
(In reply to Christian Lohmaier from comment #6)
> .oO("if exists $hash{KEY}" likely is not what you want, just "if $hash{KEY}"
> or "if defined $hash{KEY}" should be more like it)

Well, I just copied that from /usr/libexec/drakconf. It works...
Comment 8 Christian Lohmaier 2017-08-21 18:07:19 CEST
(not claiming that it wouldn't "work" in this case, it is just bad practice to check the level of your garden's pond if you want to know whether it rained the previous day - it definitely can work though if the circumstances are right)
Comment 9 Martin Whitaker 2019-01-27 23:39:05 CET
Should be fixed in mgaonline-3.26

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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