helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
806 stars 58 forks source link

FeatherPad cannot save to removable media #311

Closed probonopd closed 2 years ago

probonopd commented 2 years ago

FeatherPad cannot save to removable media due to PolicyKit related errors, even though the removable media is perfectly writable for the user (Filer can create new files and directories there with no issues).

Why does FeatherPad even bother to do anything with PolicyKit when the file is writable for the user to begin with?

image

Error checking for authorization org.freedesktop.policykit.exec: GDBus.Error:org.freedesktop.PolicyKit1.Errror.Failed: kget_kinfo_proc() failed for pid xxxx: No such process

Searching information about this, among the first results is Red Hat, and among the first text you read is systemd. We need to get rid of PolKit!

probonopd commented 2 years ago

FeatherPad changelog says for V0.17.0:

Allow saving as root without a root instance when the user doesn't have the permission to write. PolKits's pkexec is used for gaining the root privileges.

The point is, the user does have permission to write here! Why is it still messing around with PolKit?

probonopd commented 2 years ago
% pkexec
Error checking for authorization org.freedesktop.policykit.exec: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: get_kinfo_proc() failed for pid 4594: No such process

As usual. Red Hat stuff claiming "cross desktop" ambition using the "FreeDesktop" name (another word for Gnome really), is sparsely documented, and for Linux only, and with a bias toward systemd. No man page! Makes me cringe to see this on BSD.

And why GDBus? We want no G. We want Qt.

Why would a glorified (=overcomplicated) sudo command have a dependency on spidermonkey78, a heavyeight JavaScript library?

This is no fun. I don't like working with this stuff. I want to get rid of it. It has no place on my desktop.

probonopd commented 2 years ago

Can FeatherPad be freed from the PolKit baggage? Asked upstream.

probonopd commented 2 years ago

I can see where this will be going. Even the last remnants of that convoluted polkit/gvfs/libudisks/consolekit2 stack need to be removed before the system will be easy to understand.

RevoOne-RL85% sudo pkg remove polkit
pkg: gvfs is locked, cannot delete libudisks
pkg: slim is locked, cannot delete consolekit2
probonopd commented 2 years ago

https://github.com/vermaden/automount/commit/3dacc130686bfc675144706f74af352b5f2b8149 fixes the immediate issue.

Reference: https://github.com/vermaden/automount/issues/38