When kate has an new file while closing the application it requests to save it. It would be nice to have the same behavior as on notepad++: It don't asks the user on close for save new file(s), they are just saved in the application directory on a temporary filename and restore them on start. This is very useful in case of interruption (reboot, crash, end of work, ...) This should be enabled by a setting like "Save unsaved file(s) on open".
*** Bug 493730 has been marked as a duplicate of this bug. ***
1. Start using sessions functionality in Kate, create named sessions 2. See Sessions page in settings. Set your options there. Specifically "startup/shutdown behaviour" is what you want. The feature is not that old so it might not be 100% reliable yet.
Also, use a newer package, 24.08 or newer. The version you have is too old so it will be a lot buggier. We have appimages and flatpak support
(In reply to Waqar Ahmed from comment #2) > 1. Start using sessions functionality in Kate, create named sessions > 2. See Sessions page in settings. Set your options there. Specifically > "startup/shutdown behaviour" is what you want. > > The feature is not that old so it might not be 100% reliable yet. Nice! I did not see that.
(In reply to Waqar Ahmed from comment #3) > Also, use a newer package, 24.08 or newer. The version you have is too old > so it will be a lot buggier. We have appimages and flatpak support I had the ubuntu repo package installed. After flatpak install it won't run by calling kate, it seems something is broken. I could run it only by: "flatpak run org.kde.kate". Can you check the flatpak package please?
Not sure that is in my hands. You can create an alias for it in your bashrc file. Maybe removing distro package will allow you to call 'kate' directly.