The officially official Devuan Forum!

You are not logged in.

#1 2019-02-10 05:02:57

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

[Solved] Beowulf - pkexec 'menu items' not working

Fresh Install: Beowulf mini iso -feb2019, Xfce (default settings).
    Not vm/vbox, dell laptop
    Updated, using only beowulf repos.

Installed Synaptic & Bleachbit (with 'as root'), rebooted, ticked both to test for permission/password request,
- with no response from either. Task Manager shows no attempt at starting.

Both '.desktop' files have:

Exec=synaptic-pkexec
TryExec=pkexec
Exec=bleachbit-pkexec

And 'only' from ticking bleachbit (as root) menu launcher:

Failed to execute command "bleachbit-pkexec".
Failed to execute child process “bleachbit-pkexec” (No such file or directory)

Normally I'd change it to 'gksu', but figure to fix/correct beowulf version pre-approved way  wink
*Both do start/run from terminal 'sudo', but I hear thats seperate from pkexec.*
Bug?

asta~

Last edited by stanz (2019-02-10 23:03:53)


miyoisomix.i2p

Offline

#2 2019-02-10 10:06:50

rolfie
Member
Registered: 2017-11-25
Posts: 175  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Give us an idea how polkit is looking like:

apt list --installed policykit*
apt list --installed libpolkit*

Regards, Rolf

Offline

#3 2019-02-10 16:58:31

xinomilo
Member
Registered: 2017-07-02
Posts: 68  

Re: [Solved] Beowulf - pkexec 'menu items' not working

bleachbit in my system /usr/share/applications/bleachbit-root.desktop :

Exec=pkexec bleachbit

and it works that way. synaptic also works normally from menu.

Offline

#4 2019-02-10 18:22:52

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Hello rolfie,
We are close, in using the iso fsmithred rebuilt - with different install methods.
Should be somewhat similar & maybe easy to spot differences.. huh?
as requested:

apt list --installed policykit*
Listing... Done
policykit-1/now 0.105-25+devuan1 amd64 [installed,local]

and..

apt list --installed libpolkit*
Listing... Done
libpolkit-agent-1-0/now 0.105-25+devuan1 amd64 [installed,local]
libpolkit-backend-1-0/now 0.105-25+devuan1 all [installed,local]
libpolkit-backend-elogind-1-0/now 0.105-25+devuan1 amd64 [installed,local]
libpolkit-gobject-1-0/now 0.105-25+devuan1 all [installed,local]
libpolkit-gobject-elogind-1-0/now 0.105-25+devuan1 amd64 [installed,local]

Greetings xinomilo,
Thanks for the "very helpful", show of difference there...a "dash" in mine - none in yours, AND reversed!
Did you use that "rebuilt" mini iso?

mini.iso             07-Feb-2019 12:06          47185920
xinomilo wrote:

bleachbit in my system /usr/share/applications/bleachbit-root.desktop :

Same here, thats where I started looking & tweaking also - with no success.

Exec=pkexec bleachbit

I'll remove that dash on both and test.

be right back..  smile

Last edited by stanz (2019-02-10 18:35:20)


miyoisomix.i2p

Offline

#5 2019-02-10 18:53:48

rolfie
Member
Registered: 2017-11-25
Posts: 175  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Same versions as in my VM where synaptic works.

Check in /usr/share/polkit-1/actions if you got a file named com.ubuntu.pkexec.synaptic.policy in there.

Rolf

Offline

#6 2019-02-10 18:58:54

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Weird, that didn't work ?!
Packages:

apt list --installed synaptic
Listing... Done
synaptic/now 0.84.5 amd64 [installed,local
apt list --installed bleachbit
Listing... Done
bleachbit/now 2.0-3 all [installed,local]

Both /usr/share/applications/ '.desktop' files, just tweaked:

[Desktop Entry]
Version=1.0
Type=Application
Name=BleachBit (as root)
Comment=Free space and maintain privacy
GenericName=Unnecessary file cleaner
TryExec=pkexec
Exec=pkexec bleachbit
Icon=bleachbit
Categories=GTK;System;
Keywords=clean;performances;free;privacy;
StartupNotify=true

[Desktop Entry]
Name=Synaptic Package Manager
GenericName=Package Manager
Comment=Install, remove and upgrade software packages
Exec=pkexec synaptic
Icon=synaptic
Terminal=false
Type=Application
Categories=PackageManager;GTK;System;Settings;
X-Ubuntu-Gettext-Domain=synaptic

Why my reversed pkexec entry with a dash? hmm


miyoisomix.i2p

Offline

#7 2019-02-10 19:15:55

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

rolfie wrote:

Same versions as in my VM where synaptic works.
Check in /usr/share/polkit-1/actions if you got a file named com.ubuntu.pkexec.synaptic.policy in there.
Rolf

Yes, I do have - for both.
/usr/share/polkit-1/actions/com.ubuntu.pkexec.synaptic.policy
/usr/share/polkit-1/actions/org.bleachbit.policy

English info:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/Po … config.dtd">
<policyconfig>

  <action id="com.ubuntu.pkexec.synaptic">
    <message>Authentication is required to run the Synaptic Package Manager</message>
<icon_name>synaptic</icon_name>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/synaptic</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>

and...

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/Po … config.dtd">
<policyconfig>

  <action id="org.bleachbit">
    <message>Authentication is required to run Bleachbit</message>
    <icon_name>bleachbit</icon_name>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/bleachbit</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>

</policyconfig>

Similar text to an issue fsmithred had dealt with & posted:
https://dev1galaxy.org/viewtopic.php?id=1548
I don't see a quick blink, on my screen.

I'm gonna reboot with the changes and check menu again.
asta ~

Last edited by stanz (2019-02-10 20:10:16)


miyoisomix.i2p

Offline

#8 2019-02-10 19:34:19

rolfie
Member
Registered: 2017-11-25
Posts: 175  

Re: [Solved] Beowulf - pkexec 'menu items' not working

What synaptic is concerned, the menu entry in Mate is synaptic-pkexec.

There is a shell skript in /usr/bin:

#!/bin/sh
pkexec "/usr/sbin/synaptic" "$@"

The policy looks ok to me. Maybe its worth to check the path settings?

Regards, Rolf

Offline

#9 2019-02-10 19:40:16

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Well, no joy after reboot either...both menu entry's fail to respond.
I opened task manager to see any action from ticking either one - with no response.
Guess I'll wait a day, maybe do a reinstall..?  yikes
Why the difference in "'Exec="
Only on my box? hummmm...inquiring minds want to know. smile

I'll install Gparted...see if it reacts same.


miyoisomix.i2p

Offline

#10 2019-02-10 20:08:05

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Ok, in my /usr/bin/

#!/bin/sh
pkexec "/usr/sbin/synaptic" "$@"

I recall trying that path entry - with synaptic, but not with bleachbit..

#!/usr/bin/env python
# vim: ts=4:sw=4:expandtab
# BleachBit
# Copyright (C) 2008-2018 Andrew Ziem
# https://www.bleachbit.org
#

"""
Launcher
"""
from __future__ import absolute_import, print_function

import os
import sys

if 'posix' == os.name:
    if os.path.isdir('/usr/share/bleachbit'):
        # This path contains bleachbit/{C,G}LI.py .  This section is
        # unnecessary if installing BleachBit in site-packages.
        sys.path.append('/usr/share/')

if 1 == len(sys.argv):
    import gtk
    try:
        gtk.gdk.Screen().get_display()
    except RuntimeError:
        print("Could not open X display")
        sys.exit(1)
    import bleachbit.GUI
    gui = bleachbit.GUI.GUI()
    gtk.main()
else:
    import bleachbit.CLI
    bleachbit.CLI.process_cmd_line()

miyoisomix.i2p

Offline

#11 2019-02-10 20:19:31

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

And SOooo...
Just installed gparted, which does not respond as well.

apt list --installed gparted
Listing... Done
gparted/testing,now 0.32.0-2 amd64 [installed]

If I get more time, I'll check its desktop file also.
I see a reinstall in my future.  smile
Thx rolfie ~ xinomilo
asta~


miyoisomix.i2p

Offline

#12 2019-02-10 20:34:40

rolfie
Member
Registered: 2017-11-25
Posts: 175  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Sorry, there are some things different on xfce compared to Mate.

Good luck, Rolf

Offline

#13 2019-02-10 20:53:17

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

rolfie wrote:

Sorry, there are some things different on xfce compared to Mate.
Good luck, Rolf

Yep ~ your right. I just figured Xfce being the default - ah, forget the rant.
We did what we could for today, I'll leave this install alone for now, I sent info
to the ML and might just reportbug.
I'll install on other laptop partition, and look for anything different.

Thx again!
asta~


miyoisomix.i2p

Offline

#14 2019-02-10 20:53:37

xinomilo
Member
Registered: 2017-07-02
Posts: 68  

Re: [Solved] Beowulf - pkexec 'menu items' not working

didn't use the mini.iso. ascii install upgraded to beowulf.
have the same .desktop files, no differences as far as i can tell with yours, and these work with MATE menu and latest policykit. maybe try with a different menu?
also check ~/.xsession-errors for anything strange.

i also have a problem starting luckybackup as root, from menu (runs ok from terminal), but i think it has something to do with Qt in that case, different issue probably..

Offline

#15 2019-02-10 23:02:37

stanz
Member
From: Northern Earth ~~ Brrrr
Registered: 2018-01-14
Posts: 133  

Re: [Solved] Beowulf - pkexec 'menu items' not working

Fixed! Solved! yikes
I also mailed the dng about this and we now have working menu launchers, requesting authentication!
big_smile
Installed 1 package: policykit-1-gnome
dng mailing list
Subject: Re: [DNG] Help testing new policykit in Beowulf

Might this help xinomilo?
..rolfie, Thx again (mate wouldn't use that gnome-type file?)


miyoisomix.i2p

Offline

#16 2019-02-11 09:04:15

rolfie
Member
Registered: 2017-11-25
Posts: 175  

Re: [Solved] Beowulf - pkexec 'menu items' not working

No, no policykit-1-gnome installed. I got policykit-1, mate-polkit and mate-polkit-common installed.

These are the suttle differences....

Regards, Rolf

Offline

Board footer