Bug 475080 - Add open as administrator button to open file menu
Summary: Add open as administrator button to open file menu
Status: RESOLVED WORKSFORME
Alias: None
Product: kio-admin
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 23.08.1
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-01 08:00 UTC by Eric Armbruster
Modified: 2024-12-04 03:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Armbruster 2023-10-01 08:00:03 UTC
STEPS TO REPRODUCE
1. Currently you can open a file in any application by using the admin:/// protocol from cmdline
2. There is no appropriate GUI support in most applications (except dolphin) to open a file as administrator
3. For instance press Ctrl+O in Kate or Firefox

OBSERVED RESULT
No button to open the file as administrator

EXPECTED RESULT
Button to open the file as administrator (in the bottom right corner of the dialog right next to the current open dialog)

This would be required for the kio open file dialog as well as the portal dialog if kio-admin is installed.
Similarly this would be great for the open folder dialog (e.g. in Kate) aswell.
Comment 1 Oded Arbel 2024-11-04 17:18:23 UTC
I'm not sure this is needed - KDE applications, such as Kate, should support using polkit to read and write files with root permissions. Non-KDE apps don't use KIO and therefor can't take advantage of the "admin:///" protocol anyway.

If I understand correctly, the way the KDE desktop portal works with non-KDE applications, is that if you use a remote protocol ("admin:///" is essentially a remote file API), then it uses kio-fuse to mount the remote namespace on a local temp directory so that applications that can only do local file access can access it. Doing that to "admin:///" is a terrible practice from the point of security - it basically gives any application that can monitor for this kio-fuse mount, unfettered access to read and write files with root permission.
Comment 2 Bug Janitor Service 2024-11-19 03:46:26 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-12-04 03:46:34 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.