*** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports Please remove this comment after reading and before submitting - thanks! *** SUMMARY kate opeing empty file even with data in it STEPS TO REPRODUCE 1. kate /boot/grub2/grub.cfg OBSERVED RESULT empty file opend EXPECTED RESULT file populatred with grub script SOFTWARE/OS VERSIONS Operating System: Fedora Linux 41 KDE Plasma Version: 6.2.3 KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i7-4510U CPU @ 2.00GHz Memory: 15,0 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 4400 Manufacturer: Hewlett-Packard System Version: A3009C510002 ADDITIONAL INFORMATION
Hi - on my Fedora 41 system, /boot/grub2/grub.cfg can only be read by root: $ sudo ls -la /boot/grub2/grub.cfg -rw-------. 1 root root 6891 Dec 1 16:28 grub.cfg Can you please confirm if, on your system, /boot/grub2/grub.cfg is a file that should be readable by a standard user account? (Otherwise, there would be no way for Kate to be able to open it as your standard user)
kate should escalate if it needs perms
I see - thanks for explaining, as that's a different Expected Result than what was originally described in the bug report. What you're saying makes sense, and I'm merging this in with the existing bug report for the situation of Kate prompting for escalation when it has insufficient permissions when opening a file. To note, this seems to only apply when it is launched from the command line - I could not reproduce this bug when opening from the Dolphin "temporarily work as an administrator" mode. *** This bug has been marked as a duplicate of bug 449020 ***