You are not logged in.
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
*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
Give us an idea how polkit is looking like:
apt list --installed policykit*
apt list --installed libpolkit*
Regards, Rolf
Offline
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
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
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..
Last edited by stanz (2019-02-10 18:35:20)
miyoisomix.i2p
Offline
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
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?
miyoisomix.i2p
Offline
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
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
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..?
Why the difference in "'Exec="
Only on my box? hummmm...inquiring minds want to know.
I'll install Gparted...see if it reacts same.
miyoisomix.i2p
Offline
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
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.
Thx rolfie ~ xinomilo
asta~
miyoisomix.i2p
Offline
Sorry, there are some things different on xfce compared to Mate.
Good luck, Rolf
Offline
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
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
Fixed! Solved!
I also mailed the dng about this and we now have working menu launchers, requesting authentication!
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
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