Bug 29754

Summary: MageiaUpdate doesn't work under when started as non-root user under wayland (Plasma-wayland session)
Product: Mageia Reporter: Buchan Milne <bgmilne>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal    
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: rpmdrake-6.32-1.mga8.src.rpm CVE:
Status comment:

Description Buchan Milne 2021-12-10 20:35:27 CET
Description of problem:

The user-facing update tool cannot be started as non-root under a Plasma Wayland session.

I believe it works correctly under a X11 ("Plasma" on sddm) session. We should try and ensure all user-facing tools work correctly under Wayland.

Version-Release number of selected component (if applicable):

rpmdrake-6.32-1.mga8

How reproducible: Always under Plasma Wayland session


Steps to Reproduce:
1. Install plasma-workspace-wayland

2. Click on the mgaapplet notification that there are updates, no window appears as expected.

3. Try and start MageiaUpdate from a terminal emulator:

[bgmilne@buchan-desktop ~]$ MageiaUpdate 
Ignore the following Glib::Object::Introspection & Gtk3 warnings
No protocol specified
Unable to init server: Could not connect: Connection refused
Cannot be run in console mode.

(This pops up the polkit dialog to enter your password before any output in the shell, then after the password is entered, the warnings/errors are printed and it dies)

4. Start MageiaUpdate from a terminal emulator as root (this works):

[bgmilne@buchan-desktop ~]$ su
Password: 
[root@buchan-desktop bgmilne]# MageiaUpdate 
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.
getting lock on urpmi
retrieved   media_info/MD5SUM
...
Comment 1 Lewis Smith 2021-12-11 20:25:38 CET
Thank you for this thorough report. No need to verify it!

Assigning to the MageiaTools people.

Assignee: bugsquad => mageiatools