Bug 14075

Summary: adminpanel-qt - the update checkbox is disabled in expert mode
Product: Mageia Reporter: Dimitrios Glentadakis <dglent>
Component: RPM PackagesAssignee: Angelo Naselli <anaselli>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: matteo.pasotti
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: adminpanel-1.0.0-0.5.mga5.src.rpm CVE:
Status comment:
Attachments: Output after launching the program from the terminal
A screenshot showing the update checkbox disabled

Description Dimitrios Glentadakis 2014-09-09 06:46:26 CEST
After launching the adminpanel-qt in expert mode by the command:

pkexec /usr/bin/mpan.pl --expert


the update checkbox is disabled (grey)


Reproducible: 

Steps to Reproduce:
Comment 1 Dimitrios Glentadakis 2014-09-09 06:47:09 CEST
Created attachment 5409 [details]
Output after launching the program from the terminal
Comment 2 Dimitrios Glentadakis 2014-09-09 06:48:14 CEST
Created attachment 5410 [details]
A screenshot showing the update checkbox disabled
Comment 3 Angelo Naselli 2014-09-09 09:40:32 CEST
on comment #1, what do i have to use to open your output file?
TIA
Angelo Naselli 2014-09-09 09:44:45 CEST

Status: NEW => ASSIGNED
CC: (none) => matteo.pasotti

Comment 4 Angelo Naselli 2014-09-09 10:12:17 CEST
Just out of curiosity, is mcc working like that?
mcc --expert does not seem to pass it to edit-rpm-sources.pl on mga4.
Comment 5 Dimitrios Glentadakis 2014-09-09 10:16:19 CEST
Sorry i forgot to paste the output in the file :)
I will update the file tomorrow morning and the info for #4
Comment 6 Dimitrios Glentadakis 2014-09-09 10:18:52 CEST
(In reply to Angelo Naselli from comment #4)
> Just out of curiosity, is mcc working like that?
mcc --expert does not seem
> to pass it to edit-rpm-sources.pl on mga4.

I think no, which command i have to run for edit sources in adminpanel-qt directly from the terminal ?
Comment 7 Angelo Naselli 2014-09-09 10:40:08 CEST
as root just run dragora-urpm-sources.pl from console.
--expert works in that case
Comment 8 Dimitrios Glentadakis 2014-09-09 13:26:15 CEST
But this opens the terminal interface.
Is it possible to open the qt interface in expert mode ?
Comment 9 Angelo Naselli 2014-09-09 14:50:08 CEST
it should not, it should open a gui version if the relevant yui plugin is installed.

in any case there is a trick to force the gui you need
(considering you are in a console as root)

#running gtk interface
dragora-urpm-sources.pl --gtk
#running qt interface
dragora-urpm-sources.pl --qt
#running ncurses interface
dragora-urpm-sources.pl --ncurses

Those options are valid for any yui applications.
Comment 10 Dimitrios Glentadakis 2014-09-09 19:38:15 CEST
Ok, this is the command that i was looking for:
dragora-urpm-sources.pl --expert --qt

it works only from root as you said, and launching from a terminal.

It doesn't work if i run it as user:
pkexec dragora-urpm-sources.pl --expert --qt


What i did initially it doesn't make sens ... i close this report

Status: ASSIGNED => RESOLVED
Resolution: (none) => INVALID

Comment 11 Angelo Naselli 2014-09-09 19:44:19 CEST
I didn't add dragora* to polkit, since that work is not completed yet, maybe 
after some tests we could add them anyway.

Concerning the mpan.pl --expert as well as mcc --expert, that's true it does
not work, and maybe either make sense, but if all the modules use --expert to
add magic functionalities... well it could make sense, for the tool collector.

I will think about it at least for mpan.

Thanks for your tests