brunonova/nautilus-admin

Use gvfs admin backend instead of pkexec

Closed this issue · 2 comments

gvfs 1.30 (generally included in GNOME 3.22 distros) has a new admin backend.

Instead of running an app as root or using pkexec, you can just use the admin:// prefix.

For instance, to edit your grub settiings, you can open admin:///etc/default/grub in gedit

To browse the root home directory, just navigate to admin:///root/

That takes care of Open and Edit as Administrator which I assume would be the most common features of this extension.

The admin backend is useful because GNOME on Wayland currently does not support pkexec. This issue is a follow up for #27

I've been a bit out of the loop lately.
I didn't know about that new admin backend. That's awesome!

Yes, that's a good idea. Thanks!

Done! I tested it on the latest Fedora version and it seems to work fine.
I'll release a new version now.