• Christian Kellner's avatar
    thunderbolt: only try to enroll if we are allowed · 1f864c90
    Christian Kellner authored
    Check via Polkit if the current user is actually allowed to enroll
    devices before trying to do so. If not, show a notification that
    explains that a system administrator needs to authorize the device.
    Clicking on the notification will guide the user to the thunderbolt
    control center panel. Before this patch, when the current user was
    not allowed to enroll a device a polkit dialog would pop up which
    is confusing because it did not contain any information why it was
    shown. This patch implements the behavior as designed (see [1],
    section "Multi-user environments").
    
    [1] https://wiki.gnome.org/Design/Whiteboards/ThunderboltAccess
    1f864c90
Name
Last commit
Last update
.settings Loading commit data...
data Loading commit data...
docs/reference Loading commit data...
js Loading commit data...
man Loading commit data...
meson Loading commit data...
po Loading commit data...
src Loading commit data...
subprojects Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.project Loading commit data...
COPYING Loading commit data...
HACKING.md Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
config.h.meson Loading commit data...
gnome-shell.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...