Bug 469028

Summary: Kate no longer work as sudoedit editor and closes file immediately
Product: [Applications] kate Reporter: Marcelo Bossoni <mmbossoni>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 23.04.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcelo Bossoni 2023-04-26 21:11:16 UTC
SUMMARY
Since new applications, kate closes the file being edited as sudoedit before being able to edit it


STEPS TO REPRODUCE
1. Launch sudoedit with EDITOR=kate sudoedit /etc/somesystemfile

OBSERVED RESULT
Empty temp file is shown on editor instead of the file being edited and sudoedit tells file has no changes

EXPECTED RESULT
File being edited show on kate

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-1-cachyos-bore (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7A37
System Version: 1.0
Comment 1 Christoph Cullmann 2023-04-27 07:52:44 UTC
Hi, you need to start it with -b, that should solve your issue.