User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.34 (KHTML, like Gecko) rekonq Safari/534.34 Build Identifier: If I right-click on Dolphin, and go to New > Text File… (or similar, second row anyway), if I enter a file extension for the name of the file on the next, a file will be created as “FilenameIChosedWithMy.extension.desktop”. That is, if I enter “file.txt”, a “file.txt.desktop” file will be created instead. Same things happens using other extensions on the dialog to choose the name of the new file, I tried with .jpg also. Yet, entering an extensionless name works like a charm. That is: If I enter "file", I get a "file.txt" file (automatic corrent extension). IIRC, in the past Dolphin would just detect I already passed it the .txt extension on the name, so when passing "file.txt" as name it would create a "file.txt" file, same as when passing just "file" as name, Reproducible: Always Steps to Reproduce: 1. Right-click on Dolphin (on the folder view). 2. Go to New > Text File… (text might be slightly different on actual English version) 3. Enter "file.txt" as name for the new file. Actual Results: A file named “file.txt.desktop” is created. Expected Results: A file named "file.txt" should be created instead.
I can confirm this bug on KDE 4.8.1 under Kubuntu 11.10. It doesn't just affect .txt files, but also affects my other templates (e.g. LibreOffice) as well.
*** Bug 295553 has been marked as a duplicate of this bug. ***
I can confirm this with KDE SC 4.8.1, Arch Linux
I see. This is the fix for bug 224142 affecting other kinds of files too. I'm writing a unittest, then I'll fix the bug. Hold on ;)
Git commit 1775292fbd429a9e07dc9d612f2ea0b0afcc2541 by David Faure. Committed on 09/03/2012 at 23:53. Pushed by dfaure into branch 'KDE/4.8'. New File menu: fix regression due to overzealous name-fixup code. The fix for bug 224142 ended up affecting other file types than desktop files, and appending ".desktop" to these. Fixed by making the extension-appending code more generic, which fixes the similar issue with normal files too: e.g. naming a text file "foo.jpg" will end up creating a file named "foo.jpg.txt" With unittest so that this won't happen again :) Related: bug 224142 FIXED-IN: 4.8.2 M +15 -9 kfile/knewfilemenu.cpp M +1 -0 kfile/tests/CMakeLists.txt A +115 -0 kfile/tests/knewfilemenutest.cpp [License: LGPL (v2/3+eV)] http://commits.kde.org/kdelibs/1775292fbd429a9e07dc9d612f2ea0b0afcc2541
*** Bug 295752 has been marked as a duplicate of this bug. ***
*** Bug 295754 has been marked as a duplicate of this bug. ***
*** Bug 295951 has been marked as a duplicate of this bug. ***
*** Bug 296448 has been marked as a duplicate of this bug. ***
*** Bug 296607 has been marked as a duplicate of this bug. ***
*** Bug 296729 has been marked as a duplicate of this bug. ***
Where is unsub function here? I receive only notifications about dublicate bugs.
(In reply to comment #12) > Where is unsub function here? I receive only notifications about dublicate > bugs. Please click on "edit" on CC: List (top-right) and remove your e-mail.
*** Bug 296752 has been marked as a duplicate of this bug. ***
*** Bug 297001 has been marked as a duplicate of this bug. ***