SUMMARY When opening a file with Firefox, opening with Chromium, saving with Firefox, or adding an attachment with Thunderbird, the KDE file picker has " - Portal" shown in its titlebar (as well as a Generic KDE icon). I realise its probably the requesting app's fault that no title is passed to the portal, however " - Portal" is meaningless to most users. Would it not be better to just have no application name (and no icon) in the file picker dialog here? For example the LibreOffice file picker simply has "Open" and not "Open - LibreOffice" STEPS TO REPRODUCE 1. Start Firefox 2. Select "Save page as..." from menu OBSERVED RESULT KDE file picker is shown with "Save As - Portal" EXPECTED RESULT KDE file picker with "Save As - Firefox", but "Save As" would be acceptable. SOFTWARE/OS VERSIONS Operating System: Kubuntu 22.10 KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.6 Kernel Version: 5.19.0-31-generic (64-bit) ADDITIONAL INFORMATION
Yeah we should override the title to omit the app name (technically that's what it is; the portal dialog is actually a separate app, not a dialog spawned by the other window itself).
From a technical POV this is a bit tricky, the "application" name is set by Qt internally. See https://bugreports.qt.io/browse/QTBUG-111497
Per the resolution to that bug report, Qt devs say we can do this ourselves by clearing the display name.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/180
Git commit dff2ad19d38241d2fa9997311c5801a0617ddb86 by Nicolas Fella. Committed on 21/03/2023 at 11:54. Pushed by nicolasfella into branch 'master'. Unset QApplication::applicationDisplayName() Otherwise windows created by the portal get '- Portal' added to their window title, which should be avoided because it's an implementation detail meaningless to the user M +1 -1 src/xdg-desktop-portal-kde.cpp https://invent.kde.org/plasma/xdg-desktop-portal-kde/commit/dff2ad19d38241d2fa9997311c5801a0617ddb86