Created attachment 174156 [details] Showcase SUMMARY Kate parses files name of file to be executed incorrectly when I try to execute it with "Tools" > "Run Current Document". Works under X11 and Wayland. STEPS TO REPRODUCE 1. Open Kate 2. Create New File (Ctrl+N) 3. Save it anywhere you want under name like "348. pasta was yummy.sh" 4. Open internal Terminal by clicking on button below. 5. Go to "Tools" > "Run Current Document" 6. Click "Run" 7. Check Terminal OBSERVED RESULT File name is written incorrectly, co file can't be executed that way. EXPECTED RESULT Fix it. Make it to support names with backspaces, unicode, periods, etc. SOFTWARE/OS VERSIONS Operating System: EndeavourOS KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Kernel Version: 6.10.10-arch1-1 (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION Vanilla KDE Plasma, vanilla Kate. © Art by axo1otl - "Scarlet Tree"
In Settings -> Configure Kate... -> Terminal, uncheck "Remove extension"
(In reply to Waqar Ahmed from comment #1) > In Settings -> Configure Kate... -> Terminal, uncheck "Remove extension" Vanilla Kate with DEFAULT settings is used. The following section is unchecked. The bug is not "FIXED".
Please share a screenshot of the settings so that I can be sure you have the right setting unchecked
Created attachment 174179 [details] Settings (In reply to Waqar Ahmed from comment #3) > Please share a screenshot of the settings so that I can be sure you have the > right setting unchecked
Git commit eaffa9a27b3766b87919fa399c2f4cb24470ec4d by Waqar Ahmed. Committed on 29/09/2024 at 10:13. Pushed by waqar into branch 'master'. konsole: Use same default value for 'RemoveExtension' We were use a different default value in the config dialog vs the actual run document function which would lead to confusion M +1 -1 addons/konsole/kateconsole.cpp https://invent.kde.org/utilities/kate/-/commit/eaffa9a27b3766b87919fa399c2f4cb24470ec4d
> In Settings -> Configure Kate... -> Terminal, uncheck "Remove extension" You can enable this setting once, apply. Then open settings again and disable it. That should fix it.