https://bugs.kde.org/show_bug.cgi?id=435608
Bug ID: 435608 Summary: Ask password only once when working with root owned files Product: kate Version: 21.03.90 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: ash...@linuxcomp.ru Target Milestone: --- SUMMARY In kate it is possible to open a file to which you have no write permissions (such as configs from /etc) and save it after editing. But Authentication Required dialog is appearing at every file save. It is extremely inconvenient. The correct behavior should be such that kate "caches" a permission to file. STEPS TO REPRODUCE 1. Open /etc/resolv.conf in kate. 2. Make any edit, press ctrl+s to save file. 3. A window dialog will appear, enter you password. 4. Observe results (for example, check some hostname resolving that you want) and understand that you want to do another edit. 5. Make another edit, press ctrl+s to save file. OBSERVED RESULT After step 5, window dialog will appear again, so you need again enter your password. EXPECTED RESULT After step 5, the file should be saved without any password dialog. SOFTWARE/OS VERSIONS Linux Distribution: Arch Linux KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION I know there is sudoedit way (SUDO_EDITOR=kate sudoedit /etc/resolv.conf), but it is not the same as editing file directly. First of all, it is inconvenient to open kate via terminal. Secondly, it assumes that you close your editor after file saving. I mean, you can save file multiple times, but changes stay in a temporary file and the final edit to target file happens only when you close editor. This way you cannot comfortly edit configs. The /etc/resolv.conf is just a simple example, but configs may be very long, with some blocks folded, opened at specific line number, have undo-redo history and so on. This makes kate just unabled for editing system configs. I use "sudo geany /etc/resolv.conf" as a workaround. It is another editor, but at least I can work this way. However, I want to be able to use kate for that. In kde partition manager there is similar password dialog (PolicyKit1 KDE Agent). It is called only once when you launch application, then it is possible to work with partitions without retyping password each time. -- You are receiving this mail because: You are watching all bug changes.