Bug 13029 - Mageia configuration tools won't start in E17
Summary: Mageia configuration tools won't start in E17
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 08:04 CET by Răzvan Rotaru
Modified: 2015-02-20 17:17 CET (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Răzvan Rotaru 2014-03-16 08:04:46 CET
Description of problem:
When starting the configuration tools (drakconf, drakrpm, etc.) in E17, an error message is displayed and the tools doesn't start: 
    Enlightenment was unable to run the application: /usr/bin/drakrpm
    The application failed to start.

The tools work when started from the terminal. In this case, I am asked to enter the root password, and after that everything works as expected.

Steps to Reproduce:
Simply start one the configuration tools from the E17 menu.


Reproducible: 

Steps to Reproduce:
Răzvan Rotaru 2014-03-16 08:05:10 CET

CC: (none) => razvan.rotaru

Comment 1 Manuel Hiebel 2014-03-23 15:40:21 CET
is a polkit agent running (ps uax | grep polkit)?
Comment 2 Răzvan Rotaru 2014-03-24 17:50:40 CET
Hmm, polkitd is running. I don't know if this is the agent.


polkitd    912  0.0  0.0 365052  8724 ?        Ssl  18:38   0:00 /usr/lib/polkit-1/polkitd --no-debug
Comment 3 Răzvan Rotaru 2014-10-09 22:36:20 CEST
So, any ideas how to investigate this problem further?
Comment 4 Marc Lattemann 2015-02-17 21:15:44 CET
same issue as described here: 11184

*** This bug has been marked as a duplicate of bug 11184 ***

Status: NEW => RESOLVED
CC: (none) => marc.lattemann
Resolution: (none) => DUPLICATE

Comment 5 Colin Guthrie 2015-02-18 09:06:28 CET
No, this is not the same issue. You are likely not running a polkit *agent* (as asked in comment 1. Polkit authentication needs two parts: the daemon that implements the actual policy and does the check and an agent that allows for the passing of the authentication details to this daemon.

Typically a desktop environment will provide it's own polkit agent (e.g. in gnome (and I think cinnamon too) it's built in to the shell, kde has it's agent, lxde has lxpolkit etc. etc.).

I don't know what the "recommended" one for Enlightenment is, but we often fall back to mate-polkit so try installing that package and running that agent to see if it works (otherwise you can try and work out what polkit agent E is supposed to have and use that (either of which might then lead us to adding some missing deps).

Status: RESOLVED => REOPENED
CC: (none) => mageia
Resolution: DUPLICATE => (none)

Comment 6 Colin Guthrie 2015-02-18 09:33:24 CET
OK, so looking at your other comment on #11184, you do have mate-polkit installed but it's likely not running.

This means we have to patch it's autostart file /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop to also start under Enlightenment. At present it says:

OnlyShowIn=MATE;XFCE;OPENBOX;Old;

So we have to work out what E presents itself as there so that it can process the autostart stuff properly. If someone can work out what value to put in here to make it start in E I can patch the package.


Longer term, it would be nicer to package an EFL based polkit agent. I know there is one available as it's packaged in Arch, but not sure what state it's in https://wiki.archlinux.org/index.php/Enlightenment#Polkit_agent
Comment 7 Marc Lattemann 2015-02-18 19:55:54 CET
Thanks Colin for the clarification on the polkit daemon/agent stuff. I'm always keen on learning...

According to the instructions from your link, I could manage to activate the polkit-agent and it started after new login and also the mcc starts from the menu.

[marc@Cauldron ~]$ ps aux | grep polkit
polkitd   2094  0.0  0.6 375576 13180 ?        Ssl  19:35   0:00 /usr/lib/polki
-1/polkitd --no-debug
marc      2531  0.0  1.1 432276 23036 ?        SNsl 19:47   0:00 /usr/libexec/polkit-mate-authentication-agent-1

In the next step I will try to check the .desktop file
Comment 8 Marc Lattemann 2015-02-18 23:45:03 CET
adding of polkit-mate-authentication-agent-1 into the autostart of enlightning seems to fix the issue:

[marc@Cauldron ~]$ echo "/etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop" > .e/e/applications/startup/.order"

after adding it to the .order file the polkit agent is running on startup of e and mmc starts from menu

Maybe you can use it as patch?
Comment 9 Florian Hubold 2015-02-19 18:32:29 CET
In reply to Marc Lattemann from comment #8)
> [marc@Cauldron ~]$ echo
> "/etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop" >
> .e/e/applications/startup/.order"
> 
> after adding it to the .order file the polkit agent is running on startup of
> e and mmc starts from menu
> 
> Maybe you can use it as patch?

Not really, we have to do like Colin suggested:

(In reply to Colin Guthrie from comment #6)
> This means we have to patch it's autostart file
> /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop to also start
> under Enlightenment. At present it says:
> 
> OnlyShowIn=MATE;XFCE;OPENBOX;Old;
> 
> So we have to work out what E presents itself as there so that it can
> process the autostart stuff properly. If someone can work out what value to
> put in here to make it start in E I can patch the package.

I'm currently experimenting by not extending OnlyShowIn, but by using
NotShowIn=KDE;GNOME; which probably will achieve the same thing, but for more desktops.

BTW, E presents itself as DESKTOP=Enlightenment-0.17.0 ... which seems to be some old leftover, as we have e18 stable, and e19 is latest stable.

CC: (none) => doktor5000

Comment 10 Colin Guthrie 2015-02-20 09:43:45 CET
(In reply to Florian Hubold from comment #9)
> I'm currently experimenting by not extending OnlyShowIn, but by using
> NotShowIn=KDE;GNOME; which probably will achieve the same thing, but for
> more desktops.

Perhaps this is a better approach... might need to add Cinnamon in there, but IIRC it might still pretend to be GNOME (which is fundamentally broken and a *very* bad upstream choice if this is the case - I remember seeing super ugly code related to that in Cinnamon - ugg).
Comment 11 Florian Hubold 2015-02-20 17:17:57 CET
Seems e18 doesn't start anything from /etc/xdg/autostart directly. Reading some related threads, the recommended way seems to be
echo "/etc/xdg/autostart/some-autostart-file.desktop" >> ~/.e/e/applications/startup/.order or use menu => settings => all => applications => autostart applications and add it there.


Also found this bugreport/thread upstream where the question is answered: http://lists.enlightenment.fr/enlightenment-bugs/2009/04/0325.html
(They've moved their bugtracker to https://phab.enlightenment.org but seems the old bugs do no exist there, or I'm too dumb to search).

So we can only fix this via an Errata entry. Just added:
https://wiki.mageia.org/en/Mageia_5_Errata#Mageia_tools_do_not_start_under_E18_due_to_missing_polkit_agent

Status: REOPENED => RESOLVED
Resolution: (none) => WONTFIX


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