Bug 473448 - Information preview for Desktop Entry files (.desktop) could be much better
Summary: Information preview for Desktop Entry files (.desktop) could be much better
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: information (show other bugs)
Version: 23.07.90
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-16 12:41 UTC by Oded Arbel
Modified: 2023-08-17 06:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2023-08-16 12:41:46 UTC
SUMMARY

With the Information panel open, selecting a .desktop file (FreeDesktop.org Desktop Entry), the information panel appears to try to extract some information from the file itself - specifically, it shows the "Comment" field's value as the "Type" field in the information panel, if the "Comment" field exists - otherwise it just says "desktop entry".

Looking at some .desktop files in my ~/.local/share/applications, Steam games are shown with "Type: Play this game on Steam" while the Firefox's snap desktop entry says "Type: Browse the World Wide Web". This is less than useful...


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.2.0-27-generic (64-bit)
Graphics Platform: offscreen
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

ADDITIONAL INFORMATION

I believe it is obvious that a better value for the information panel's "Type" field would be the Desktop Entry "Type" field (if exists - otherwise the text "desktop entry" is probably a good enough value), but it would also be super useful to expose the "Name" field and possibly the "Comment" field in a way that shows that its the comment.
Comment 1 Christian Hartmann 2023-08-17 06:47:15 UTC
Type: should be Type= 

and top down the panel should show: 
Type: Application (e.g.), 
Name: ...., 
Comment: ... .  

All read from the respective Values in the .desktop file.