mate-desktop / mate-polkit Goto Github PK
View Code? Open in Web Editor NEWAuthentication Agent for PolicyKit and MATE
Home Page: https://mate-desktop.org
License: Other
Authentication Agent for PolicyKit and MATE
Home Page: https://mate-desktop.org
License: Other
PolicyKit-mate provides an Authentication Agent for PolicyKit that integrates well with the MATE desktop environment See http://www.freedesktop.org/wiki/Software/PolicyKit for lots of documentation, mailing lists, etc. about PolicyKit. See also the file HACKING for notes of interest to developers working on PolicyKit-mate. Report bugs against PolicyKit-mate at github https://github.com/mate-desktop/mate-polkit/issues MATE polkit is a fork of GNOME polkit.
As written in a downstream bug, https://bugs.mageia.org/show_bug.cgi?id=12145
mate-polkit doesn't show if the needed password is an users or the root one. Other polkit agent like the Gnome one show an avater.
A simple text could be enough.
Thanks
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/16225245-show-what-for-users-password-is-needed?utm_campaign=plugin&utm_content=tracker%2F1587117&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1587117&utm_medium=issues&utm_source=github).The last commit will no let it build errors with this. Building on Arch with http://pkgbuild.com/~flexiondotorg/mate-unstable-dual/1.9/x86_64/PKGBUILD/mate-polkit/PKGBUILD
make[2]: *** No rule to make target 'kk.po', needed by 'kk.gmo'. Stop.
A possibility to build mate-polkit without libayatana-appindicators even if devel package is present in the system (for portability reasons, to avoid this dependency on some other machines).
mate-polkit is automatically build with libayatana-appindicators requirement (if -devel package is present)
rpmbuild mate-polkit
1.27
1.27.git
Rocky Linux
Custom builds, distribution has nothing to do with that. Besides, it is more a feature request and not abug report.
It would be nice if it would be relatively simple to switch builds with or without libayatana-indicators, as it is with mate-indicator-applet for instance (using "--with-ayatana-indicators" or "--with-ubuntu-indicators" configure option), no matter if libayatana -devel packages are installed or not.
I'd like to keep those packages installed, but build a complete mate desktop environment without libayatana requirements (I've successfully built libayatana-indicator / libayatana-appindicator / ayatana-ido packages, but many ayatana-indicator-... packages doesn't work in Rocky Linux 9 for me at the moment). I need those ayatana packages for some other package(s) though, so it is really annoying to install / uninstall all the time, depending on what is built...
There is segmentation fault fixed year ago, but it's still unreleased, is there a plan to release bugfix version with latest fixes?
The file
/etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop
causes MATE's polkit auth agent to be started when running e.g. Gnome3. It should only be started when running mate (or gnome-fallback).
The corresponding file shipped with gnome3 does this via the following line:
AutostartCondition=GNOME3 if-session gnome-fallback
Someone who is using debian should fix this problem.
No more libappindicator3-dev at debian.
Travis CI build is disable for debian, see 44c8a5b
Debian
Today I did a quick test with mate-polkit on a GRSEC based Linux kernel.
By whatever reason, mate-polkit fails to start. More info, once I have rebooted into GRSEC kernel the next time.
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Atk) = 1.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GLib) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GModule) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GObject) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Gdk) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(GdkPixbuf) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Gio) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Gtk) = 2.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Pango) = 1.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(Polkit) = 1.0
libpolkit-gtk-mate-1-0.x86_64: E: shlib-fixed-dependency (Badness: 440) typelib(cairo) = 1.0
Your shared library package requires a fixed version of another package. The
intention of the Shared Library Policy is to allow parallel installation of
multiple versions of the same shared library, hard dependencies likely make
that impossible. Please remove this dependency and instead move it to the
runtime uses of your library.
mate-polkit causes an warning in the session log:
gdbus call error: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
I think, the mate-polkit not depends on gnome services, so this commit is obsoleted now:
df8f274
Just a note: the original path in https://bugzilla.gnome.org/show_bug.cgi?id=634502 never applied in polkit-gnome.
compiling with meson and
meson setup build --prefix=/usr
starting in source directory with
Exec=@FULL_LIBEXECDIR@/polkit-mate-authentication-agent-1
in
polkit-mate-authentication-agent-1.desktop.in.in
should yield
Exec=/usr/libexec/polkit-mate-authentication-agent-1
in
polkit-mate-authentication-agent-1.desktop
and program should autostart at runtime
compiling with meson and
meson setup build --prefix=/usr
starting in source directory with
Exec=@FULL_LIBEXECDIR@/polkit-mate-authentication-agent-1
in
polkit-mate-authentication-agent-1.desktop.in.in
yields
Exec=libexec/polkit-mate-authentication-agent-1
which of course means the program won't run, as the binary still installs to
/usr/libexec/polkit-mate-authentication-agent-1
Build mate-polkit with meson and specify an install prefix. Either navigate to build/src/polkit-mate-authentication-agent-1.desktop and check the path specified for the binary or install it and attempt to start it from the autostart file. Program does not run, elevated privilige tasks can only be done from terminal with sudo
or by manually starting /usr/libexec/polkit-mate-authentication-agent-1 (or wherever you install it)
1.27
Locally built (using meson) mate-polkit from git master current as of 8-31-2023
Debian Unstable
None as this is a locally built package
I have this message in .xsession-errors
(polkit-mate-authentication-agent-1:26588): polkit-mate-1-WARNING **: Unable to determine the session we are in: No session for pid 26588
and that's the message I get when I try to start it manually:
$ mate-polkit
(polkit-mate-authentication-agent-1:27651): polkit-mate-1-WARNING **: Unable to determine the session we are in: No session for pid 27651
Unfortunately, it does not give any information about what might be the issue.
I assume that the underlying problem is somewhere else, but I can't figure that out from this message. Please improve the message (e.G. "Unable to determinate the session we are in: No session found for pid 4711. Is mate-session-controller running?" or something else that might give away an idea on where to look.)
I'm using mate-polkit
as my polkit agent. I have it set up to work with my Yubikey using pam_u2f
.
So when I'm prompted to authorise, I have to tap my yubikey and that all works fine. There's no password-typing involved.
The prompt that I get has an "Authenticate" button, which does nothing when clicked and is a bit confusing (even though I know it does nothing, sometimes I click it instead of tapping my yubikey ๐คฆโโ๏ธ
When not requesting a password, the "Authenticate" button should not be present; only "Cancel" makes sense here.
You'll need to configure pam_u2f
. This is my /etc/pam.d/polkit-1
:
#%PAM-1.0
auth sufficient pam_u2f.so authfile=/etc/u2f_mappings
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
If you don't have a key plugged in, the popup still shows but closes right away. So you can at least get a glimpse of the issue without a Yubikey.
I'm also not sure why it won't ask for a password when there's no key present though, that should suffice and it's what sudo
does.
mate-polkit 1.26.0
ArchLinux
an intact .desktop file in XDG autostart
missing EOL character after Categories= key in /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop
Rebuild from source and check the resulting polkit-mate-authentication-agent-1.desktop file
1.24
1.24.0
Debian
for example:
1.open launage-setting(anyone need authenaticate)
2.click "apply the whole system"
3.popup mate-polkit window,the focus on the gtkentry
4.cancell
5.move the window of launage-setting
6.do as step 2-3
7.the focus will not on mate-polkit
i donot know how to deal with this bug
As we've (with stefano-k) spoken about in a query; could you look into whether it is possible to deprecate and remove the mate-polkit fork to reuse gnome-polkit, as well have the reverse dependencies use gnome-polkit?
Less packages translates to less maintenance at distributions.
Thank you very much in advance.
When I try to access any application that uses policy kit I am not prompted to enter a password. Could you suggest where to start looking for the problem?
I'm using LMDE with the SID repos.
mate-polkit, libmatepolkit : 1.6.0-1+lmde
gir1.2-polkit-1.0 : 0.112-2
In .xsession I'm seeing the following.
** (polkit-mate-authentication-agent-1:4941): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine session the caller is in
Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine session the caller is in
When mate-polkit is configured without --enable-appindicator
(like the arch package) then every time is runs, it shows an ugly icon on system tray which immediately disappears if you click on it. I've made a bug report on the arch package in order to add --enable-appindicator
option, but I believe that the current behaviour isn't appropriate.
In my opinion, when --enable-appindicator
is not used, then it shouldn't show any icon on system tray at all, because otherwise it's ugly and confusing for users. I don't know if this can be easily implemented. Tell me what you think.
The COPYING file refers to the GPL-2.0
while in the header of most files it is the LGPL-2.0
that is mentioned.
Could you please clarify which license apply to mate-polkit (both, only the GPL or only the LGPL ?)
Also, for info the LGPL-2.0-or-later
has been superseded by LGPL-2.1-or-later
, so ideally it's better to refer to version 2.1 if you have to update something (source).
Hi,
All code files in mate-polkit are licensed under LGPL-2+. The code files also contain the API documentation as code-inlined text.
However, the file docs/polkit-gtk-mate-1-docs.xml maintains that the API is licensed under GFDL-1.1. This contradicts to the license header information of the individual code files.
However, one may presume that GNOME upstream originally aimed at licensing the API (as they did with other docs) under GFDL and code under LGPL.
Strategically, I would be very strict and apply license headers from the code files to the API documentation (though LGPL is not a typical documentation license).
If you choose another approach and want (at the same time) comply to the DFSG, you have to rewrite the code-inlined API documentation of mate-polkit.
Alternatively, you could contact David Zeuthen and ask for relicensing the docs.
light+love,
Mike
Arch Linux
Package: mate-polkit 1.18.1-1 (https://www.archlinux.org/packages/community/x86_64/mate-polkit/)
With 1.18 an old problem has resurfaced (that emerged initially on 1.16 and was fixed on 1.17, if memory serves me right): The Privilege Escalation icon on the notification area of the panel is showing again corrupt.
According to the PKGBUILD file, the package is built from the sources available at http://pub.mate-desktop.org/sources/mate-polkit/1.18/mate-polkit-1.18.1.tar.xz and without any modifications.
Thank you to lukefromdc for helping with this bug report.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I install mate from source code.My os is fedora14.When i compile mate-polkit package, i got this error
CC libpolkit_gtk_mate_1_la-polkitlockbutton.lo
polkitlockbutton.c: In function 'update_state':
polkitlockbutton.c:683:16: warning: 'text' may be used uninitialized in this function
polkitlockbutton.c:684:16: warning: 'tooltip' may be used uninitialized in this function
polkitlockbutton.c:685:12: warning: 'sensitive' may be used uninitialized in this function
CCLD libpolkit-gtk-mate-1.la
CC example-example.o
CCLD example
/usr/bin/g-ir-scanner -v
--namespace PolkitGtkMate
--strip-prefix=Polkit
--nsversion=1.0
--include=Gtk-2.0
--include=Polkit-1.0
--library=polkit-gtk-mate-1
--output PolkitGtkMate-1.0.gir
--pkg=polkit-gobject-1
--pkg=gtk+-2.0
--libtool=../libtool
-I..
-DPOLKIT_GTK_MATE_COMPILATION
./polkitgtkmate.h
./polkitgtkmatetypes.h
./polkitlockbutton.h \
Couldn't find include 'Polkit-1.0.gir' (search path: ['/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0'])
make[2]: *** [PolkitGtkMate-1.0.gir] Error 1
make[2]: Leaving directory /home/blackrose/Downloads/MATE/Mate-Desktop-Environment/mate-polkit/polkitgtkmate' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/home/blackrose/Downloads/MATE/Mate-Desktop-Environment/mate-polkit'
make: *** [all] Error 2
How i resolve this problem? Thank you!
Working releasing with travis-ci
Meson.build files are missing
Check released tarball https://github.com/mate-desktop/mate-polkit/releases/tag/v1.28.0
1.28
1.28.0
When I run a command in the terminal with pkexec it works fine. But when I use a starter or alt + F2 to run a command with pkexec nothing happens. In Gnome 3 it also works. I use Arch Linux.
Update to 1.6.1 seems to have nuked all the translations in the
.desktop file for the comments - likely because after commit 002703a changed the
string but didn't fuzz the translation files. I think this is probably unintentional.
When mate-polkit is complied with appindicator support and run with mate-panel 1.19, a popup menu with one menu item "drop all elevated privileges" is used rather than clicking on the icon to revoke priviliges. Clicking on the menu item does drop priviliges, but the status icon does not disappear, it continues to show until the panel is restarted. The menu pops up and down normally
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.