Summary: | Creating new text file forcefully changes extension | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | David <david.cortes.rivera> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | 5.95.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/commit/ebe6706ccad4bd94d767dff4ebd4fde4c73cb31c | Version Fixed In: | 5.96 |
Sentry Crash Report: |
Description
David
2022-06-28 16:53:38 UTC
mp3 isn't a valid extension for a text file. Why would you want to do this? If you want to create a new empty file with a filename extension of your choice, you should use Create New > Empty File. Does that work for your use case? (In reply to Nate Graham from comment #1) > mp3 isn't a valid extension for a text file. Why would you want to do this? > > If you want to create a new empty file with a filename extension of your > choice, you should use Create New > Empty File. Does that work for your use > case? There's no such option in the right-click menu. Also, if the file is empty, it wouldn't make a difference that it isn't a text file. Oh, maybe it's a local patch added by Fedora. Either way, can reproduce. The fact that you want to do this seems odd to me, but being prevented from doing so is definitely a bug. :) A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/884 Git commit ebe6706ccad4bd94d767dff4ebd4fde4c73cb31c by Nicolas Fella. Committed on 30/06/2022 at 12:51. Pushed by nicolasfella into branch 'master'. [knewfilemenu] Don't forcibly change file extension The code tries to 'fix' file extensions, but that may not be what the user wants They expect the extension they typed to be used This mechanism was originally introduced to fix cases where desktop files without .desktop extensions where misdetected as other files, but that is better fixed by always setting the .desktop extension M +0 -17 src/filewidgets/knewfilemenu.cpp https://invent.kde.org/frameworks/kio/commit/ebe6706ccad4bd94d767dff4ebd4fde4c73cb31c |