Bug 14075 - adminpanel-qt - the update checkbox is disabled in expert mode
Summary: adminpanel-qt - the update checkbox is disabled in expert mode
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Angelo Naselli
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-09 06:46 CEST by Dimitrios Glentadakis
Modified: 2014-09-09 19:44 CEST (History)
1 user (show)

See Also:
Source RPM: adminpanel-1.0.0-0.5.mga5.src.rpm
CVE:
Status comment:


Attachments
Output after launching the program from the terminal (2 bytes, application/octet-stream)
2014-09-09 06:47 CEST, Dimitrios Glentadakis
Details
A screenshot showing the update checkbox disabled (556.34 KB, image/png)
2014-09-09 06:48 CEST, Dimitrios Glentadakis
Details

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

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