is there a way to copy files (from /home folder) or edit configuration files in a file system folder (like /usr/share/ ; /etc/ ; …) with the help of dolphin ?
I don’t want to use line command to do that.
Is there a way to use Dolphin as root under Wayland ?
There is no need to run Dolphin as root. You should normally have the dolphin-plugins package installed, which allows you to perform root actions from within Dolphin by way of the right-click popup menu.
Also, KWrite and Kate are both policykit-aware and will ask you for the root password when trying to save a file to a directory that your regular user account has no write access to.
For now, I’m testing wayland with kde plasma 5.20.1 and dolphin. You know that under Wayland using root access is not easy. Is your tip can be used under Wayland ?
Note: Ok, I can edit and modify configuration files with root privileges under wayland with the help of Dolphin. But I can’t copy a file to a file system folder under wayland (for example : copy a wallpaper.jpg to /usr/share/wallpapers folder) with the help of Dolphin.
Just for the record, there is no need for you to put your wallpapers under /usr. You can set wallpapers from a local directory under your $HOME just the same. They’ll be transparently added to the wallpaper selection for your user account.
It was an example. But sometimes I need to copy a file in a root folder of the system. That’s why I need a gui root access. I know it can be risked but I know what I do. Under X11/xorg it is easy, but under Wayland it is more complicated (because Wayland is more restrictive with the gui root access). Furthermore, I don’t want to use line command each time.
For editing file configuration in root folder, there is no problem. I tried with kate editor. It works under Wayland.
Ok, I found the solution to make dolphin as root work under Wayland. It is work very well.
For those who are interested, here is the tip:
Create the ~/.local/share/kservices5/ServiceMenus/ folder if it doesn’t exist (to use for only the user). If you want to use for everybody, then look at /usr/share/kservices5/ServiceMenus/ (the folder exists).
In it, create a DolphinAsRootWayland.desktop file (with Kate). Edit this file and add the following lines: