Bug 494124 - Unsetting the executable bit might reorder a .desktop file
Summary: Unsetting the executable bit might reorder a .desktop file
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-04 15:54 UTC by Mors Mortium
Modified: 2024-10-05 06:50 UTC (History)
2 users (show)

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


Attachments
The bug happening (2.58 MB, video/mp4)
2024-10-04 15:54 UTC, Mors Mortium
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mors Mortium 2024-10-04 15:54:18 UTC
Created attachment 174425 [details]
The bug happening

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

STEPS TO REPRODUCE
1. Copy a .desktop file, that has the executable bit set from /usr/share/applications
2. Observe the order of lines, or just keep it open
3. Right click the file in Dolphin
4. Click Properties
5. Click Permissions
6. Uncheck "is executable"
7. Click Ok

OBSERVED RESULT
The file gets reordered

EXPECTED RESULT
The file stays the same, just not an executable

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3

ADDITIONAL INFORMATION
Tested it with org.kde.kmail2.desktop and kdesystemsettings.desktop, both got reordered, but as org.kde.kmail2.desktop had different sections from [Desktop Entry], that became the first, which in turn broke it opening with `gio launch`
Comment 1 Paul Worrall 2024-10-05 06:50:16 UTC
Confirmed. That is truly surprising behaviour!

Operating System: Arch Linux 
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.6.0
Qt Version: 6.8.0
Graphics Platform: Wayland