Bug 27800

Summary: Cinnamon DE - Mageia Control Center does not work
Product: Mageia Reporter: Brian Rockwell <brtians1>
Component: RPM PackagesAssignee: Joseph Wang <joequant>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fri, joequant, mageia, ouaurelien, westel, yvesbrungard
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: cinnamon, mate-polkit CVE:
Status comment:
Attachments: Journal for fresh install

Description Brian Rockwell 2020-12-10 23:10:09 CET
Description of problem:  Cinnamon DE - Mageia Control Center does not work


Version-Release number of selected component (if applicable): 8-bet2 (12/8)


How reproducible:


Steps to Reproduce:
1. Install fresh copy of MGA8 using classic X86_64 installer
2. Click on Mageia Control Center - nothing happens
3.
Comment 1 Brian Rockwell 2020-12-10 23:11:34 CET
Created attachment 12067 [details]
Journal for fresh install

Note you'll see me messing around with terminal commands to add media/etc in attempt to see if latest fixes resolve this.

Enjoy my sloppy journey.

In the end, after reboot, still broken.
Comment 2 Morgan Leijström 2020-12-11 00:39:17 CET
what happens if you open a terminal, and

su -
mcc

?

CC: (none) => fri

Comment 3 Ben McMonagle 2020-12-11 00:40:43 CET
works for me _ all DE install 32 bit

can you attach the install log and report.bug.xz?

CC: (none) => westel

Comment 4 Morgan Leijström 2020-12-11 00:51:42 CET
I am thinking some polkit may be missing, så programs fail asking for root access.  We had that for LXDE, recently fixed in Bug 27574.

It may work for Ben simply if stuff he installed pulled in something needed, but should also have been pulled in by cinnamon.
Comment 5 Ben McMonagle 2020-12-11 00:57:31 CET
terminal output;

as user
$ mcc
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.

(mcc:5698): Gtk-WARNING **: 12:55:44.297: Theme parsing error: gtk.css:2:33: Failed to import: Error opening file /home/home/.config/gtk-3.0/window_decorations.css: No such file or directory

(mcc:5698): dbind-WARNING **: 12:55:44.327: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
==== AUTHENTICATING FOR org.mageia.drakconf.pkexec.run ====
Authentication is required to run Mageia Control Center GUI
Authenticating as: root
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported

and as root:

# mcc
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
"cannot run /usr/sbin/isodumper" since it is not installed [Writing ISO] at /usr/libexec/drakconf line 833.
Oops, secure memory pool already initialized
Oops, secure memory pool already initialized

presents GUI.
Comment 6 Ben McMonagle 2020-12-11 01:26:35 CET
Meant to include the following info:

comment 5 is from 64bit  all DE install, Cinnamon DE.
the MCC launcher (menu& panel) fail silently - no request for password dialogue box.


Note: works ok from Plasma DE, same install.
Comment 7 Martin Whitaker 2020-12-11 01:32:37 CET
Changing the line

  OnlyShowIn=MATE;XFCE;OPENBOX;Old;

to

  OnlyShowIn=MATE;XFCE;OPENBOX;Old;X-Cinnamon;

in /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop makes it work for me (after logging out and back in again).
Comment 8 Brian Rockwell 2020-12-11 04:00:59 CET
I edited the same:

# vi /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop

Modified that line as shown.

It works now.  :-)
Comment 9 Lewis Smith 2020-12-11 19:23:51 CET
On an up-to-date M8 system with 6 desktops, using Cinnamon, I confirm both the fault, and Martin's remedy (note the logout/in) comment 7.

Assigning to Joseph for Cinnamon.

Assignee: bugsquad => joequant

Comment 10 Martin Whitaker 2020-12-11 19:55:54 CET
On investigating why this used to work and has stopped working, I find that in the cinnamon package we used to patch the file

  /usr/share/cinnamon-session/sessions/cinnamon.session

to add polkit-cinnamon-authentication-agent-1 to the RequiredComponents line and added the file

  /usr/share/applications/polkit-cinnamon-authentication-agent-1.desktop

which started the MATE polkit agent. Joseph dropped the patch in the update to cinnamon 4.8.0. So the fix can either be to restore that patch or to apply my solution in the mate-polkit package.

Source RPM: mageia-8-x86_64 (Classic) => cinnamon, mate-polkit
CC: (none) => mageia

Comment 11 Brian Rockwell 2020-12-11 21:30:01 CET
Thanks everyone.

Do you want me to close this issue?
Comment 12 Aurelien Oudelet 2020-12-11 21:36:29 CET
(In reply to Brian Rockwell from comment #11)
> Thanks everyone.
> 
> Do you want me to close this issue?

No, please, until a fix is really done in package.

CC: (none) => ouaurelien

Comment 13 Joseph Wang 2020-12-12 12:04:44 CET
I'd rather put the patch in mate-polkit.  Can you fix it there?

CC: (none) => joequant

Comment 14 Martin Whitaker 2020-12-12 12:24:03 CET
OK, should be fixed in mate-polkit-1.24,0-4.mga8.
Comment 15 papoteur 2023-05-01 08:51:39 CEST
No more report, and Martin said it is fixed. Thus closing.

Resolution: (none) => FIXED
CC: (none) => yves.brungard_mageia
Status: NEW => RESOLVED