-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use sudo to copy, move/rename, delete #53
Comments
I don't know what is going on there, but if it's sudo-ing itself there shouldn't be a problem.
And that shan't change. PolicyKit is a mess of C libraries that love randomly crashing and dumpling their core.
Do you mind if I made a new askpass that gives a bit more explanation as to why it needs a password? A bit like the GNOME "An app is trying to do something that needs administrative permission. We ask for your password just to be on the safe side." That way the user knows what's going on, and the app still needs their consent, but you don't need a fully-fledged polkit implementation. |
Right now the main question is, how to intercept the error message shown above and bring up the "sudo itself" logic instead. We need to find where the code that triggers the copying/moving etc. is and need to find a way for how to run it as root. |
I tried to find the definition for |
Sorry @linuxkettle I didn't mean to delete comments, just wanted to hide those that didn't add new information. Pressed the wrong button. Most likely Filer is (still) using libfm for those actions. (Possibly we'll need to replace this by a small helper program written in Qt that could be run as root when needed to perform the operations.) |
This comment has been minimized.
This comment has been minimized.
I wonder if it's defined in a system-wide header file? P.S. my C compiler doesn't work EditIt isn't in any files in /usr/include. |
|
That won't work if you change anything in the libfm folder, will it? Because as-is, isn't the libfm in the pkg repositories from the upstream PCManFM? |
Are we using |
Ah yes. Somehow Filer is compiling against these headers without any problems. The |
I've added a PR now. |
I don't know enough about GLib or C++ to add the sudo code myself, but it looks like you'll need it at |
Possibly this could be used? Blocked by: |
Related KDE patch: They are using polkit, which is imho too complicated and convoluted, but maybe we can use something simpler like sudo or https://github.com/sandsmark/polkit-dumb-agent. |
Our objective is that "mere mortals" will never use the Terminal to use the system.
Right now copy, move/rename, delete operations just fail if the user does not have the required permissions.
This makes it impossible to remove an application from
/Applications
without the Terminal, for example.This is what happens:
Instead of showing an error, Filer should:
SUDO_ASKPASS
environment variable to/usr/local/bin/askpass
(the experimental builds ship it already)sudo <helper> <action to be performed>
<helper>
could either be the fullfiler-qt
or a subset of it that just exposes the copy, move/rename, delete functionality.Notes:
The text was updated successfully, but these errors were encountered: