Bug 369320

Summary: Changes not saved when editing .desktop files
Product: [Frameworks and Libraries] frameworks-kio Reporter: Mykyta Ivanchenko <mykyta.ivanchenko>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: bshah, kde, kdelibs-bugs-null, plasma-bugs-null, sam
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of an attempt to change Icon, Name, Description and Comment fields

Description Mykyta Ivanchenko 2016-09-25 11:39:25 UTC
Any changes (including Name, Description, Comment etc.) on "Application" tab in .desktop file "Properties" window is not saved, the same goes for Icon Selector on "General" tab. 
Changing Name field on "General" tab works fine.
Original .desktop file remains intact, however copy of it with cut off name appears in "~/.local/share/applications/".
Name got cut off on what seems to be a random number of characters, but it also never contains spaces (e.g. "Link to Application.desktop becomes "plication.desktop", "cation.desktop", but never "ink to Application.desktop").

Reproducible: Always

Steps to Reproduce:
1. Create sample "Link to Application.desktop"
2. Right-click on it and choose "Properties"
3. Go to "Application" tab
4. Try to change any field
5. Click "OK" to save changes

Actual Results:  
None of the changes to the original file are saved
Copy of it with cut off name appears in "~/.local/share/applications/"

Expected Results:  
Save changes to the original file
Comment 1 Mykyta Ivanchenko 2016-09-25 11:59:38 UTC
Created attachment 101279 [details]
Screenshot of an attempt to change Icon, Name, Description and Comment fields
Comment 2 Kai Uwe Broulik 2016-09-26 15:47:33 UTC
I think I saw the same during Akademy and showed it to David. Re-assigning to KIO.
Comment 3 Sam Javor 2016-11-03 02:55:20 UTC
I experience this as well.  

Workaround is to edit the .desktop file in a text editor. (documented under 'desktop entries')
Comment 4 Mykyta Ivanchenko 2017-02-08 21:22:36 UTC
Marking this as resolved, as I can't reproduce this anymore on the latest KDE Frameworks (5.30) and KDE Plasma (5.9.1).