Bug 484280

Summary: kcm_flatpak is displaying incorrect information in the Application List, and some icons are missing
Product: [Applications] systemsettings Reporter: Shawn W Dunn <sfalken>
Component: kcm_flatpakAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, joshiesuhaas0, me
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot showing the wrong application names

Description Shawn W Dunn 2024-03-22 21:27:40 UTC
Created attachment 167627 [details]
Screenshot showing the wrong application names

SUMMARY
Many of the entries in kcm_flatpak are displaying the Author or company name, rather than the application name for the flatpak

STEPS TO REPRODUCE
1. Install Some flatpaks
2. Open SystemSettings->Application Permissions->Flatpak Permissions


OBSERVED RESULT
org.kde.ark Icon is missing in the list
com.discordapp.Discord is showing "Discord Inc." as the app name
org.mozilla.Firefox is missing the icon
org.remmina.Remmina is showing "Hiroyki_Tanaka" as the app name
org.telegram.desktop is showing "John Preston" as the app name, and the icon is broken, so no idea what application it is at first glance
com.calibre_ebook.calibre is showing "Kovid Goyal" as the app name
com.nextcloud.desktopclient.nextcloud is showing "Nextcloud GmbH" as the app name


EXPECTED RESULT
Seeing the Application Names and appropriate icons

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Kalpa, Linux 6.8.1
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Attached Screenshot.
Comment 1 Shawn W Dunn 2024-03-22 21:32:41 UTC
I assume the kcm is just parsing the "Name" field provided by flatpak, which probably makes this a flatpak bug, and not a kcm_flatpak bug.

When running `flatpak list` on the same host, the output is as follows:
```
[sfalken@mustang ~]$ flatpak list
Name                                              Application ID                                        Version                  Branch                  Installation
Kovid Goyal                                       com.calibre_ebook.calibre                             7.7.0                    stable                  user
Discord Inc.                                      com.discordapp.Discord                                0.0.46                   stable                  user
Dropbox                                           com.dropbox.Client                                    195.4.4995               stable                  user
Drawing                                           com.github.maoschanz.drawing                          1.0.2                    stable                  user
MakeMKV                                           com.makemkv.MakeMKV                                   1.17.6                   stable                  user
Nextcloud GmbH                                    com.nextcloud.desktopclient.nextcloud                 3.12.2                   stable                  user
Opera                                             com.opera.Opera                                       108.0.5067.29            stable                  user
Plex                                              com.plexamp.Plexamp                                   4.10.0-r1                stable                  user
Valve Corporation                                 com.valvesoftware.Steam                               1.0.0.79                 stable                  user
```

Flatpak/Flathub is providing the Author/Developer/Company name in the "Name" Field
Comment 2 Shawn W Dunn 2024-03-22 21:40:13 UTC
Closing, and refiling upstream with flatpak/flathub
Comment 3 Patrick Silva 2024-03-22 22:06:28 UTC
incorrect app names is a flatpak bug, see
https://github.com/flatpak/flatpak/issues/5700

incorrect icons was previously reported as bug 470908

*** This bug has been marked as a duplicate of bug 470908 ***