Skip to content

Add "Act as Administrator" toggle action

Felix Ernst requested to merge felixernst/dolphin:view_as_admin into master

2024-04-05_18-21-29

This commit adds a "View as Admin" toggle action to the View menu if kio-admin is installed. The action allows switching between acting as an admin with root-access or not.

This is already possible in Dolphin if kio-admin is installed, however it is somewhat unintuitive currently and there are no warnings at all about the dangers of this.

This commit adds a warning dialog when triggering the action. It is somewhat explicit about the risks because this is in fact very dangerous.

Furthermore, while acting on a view with administrative privileges, a bar above the view shows up that contains a warning. The bar can be closed to stop acting with elevated privileges.

The warning dialog can be disabled and re-enabled from the Dolphin settings but only if the action is even available.

There is a lot more to be done to further improve this feature both security-wise as well as when it comes to usability. But considering that we are already encouraging users to use this feature without any warnings at all, I feel like now is a good time to merge this.

This work is part of a my project funded through the NGI0 Entrust Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology. As such, please contact me if you plan on doing related work so what you are doing doesn't collide with work I am being funded to do.

Not sure to what extent we want to advertise this feature at the moment considering there is still some work left to be done including things which would further improve security or reduce the potential of user error.

Edited by Felix Ernst

Merge request reports