Bug 369320 - Changes not saved when editing .desktop files
Summary: Changes not saved when editing .desktop files
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-25 11:39 UTC by Mykyta Ivanchenko
Modified: 2017-02-08 21:22 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of an attempt to change Icon, Name, Description and Comment fields (124.74 KB, image/png)
2016-09-25 11:59 UTC, Mykyta Ivanchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
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).