Bug 436178 - Make "Open Terminal" action show the icon and name of the default terminal application
Summary: Make "Open Terminal" action show the icon and name of the default terminal ap...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: 21.04.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-04-25 17:48 UTC by popov895
Modified: 2026-08-07 10:23 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description popov895 2021-04-25 17:48:02 UTC
SUMMARY

The "Open Terminal" action opens the default terminal app, which is not always Konsole. It would be nice if this action would show the icon and name of the terminal application to be opened, eg. "Open Konsole", "Open Terminator".

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: KDE neon 5.21 User Edition / X11
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
KDE Gear: 21.04.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-04-26 00:24:29 UTC
Agreed.
Comment 2 shenlebantongying 2021-04-26 19:29:19 UTC
It seems we can simply read `TerminalApplication` from `~/.config/kdeglobals`

Maybe do some copy-paste from this file?
https://invent.kde.org/plasma/plasma-desktop/-/blob/master/kcms/componentchooser/componentchooserterminal.cpp#L50
Comment 3 Nate Graham 2021-04-27 00:25:54 UTC
Yeah pretty much!
Comment 4 Bug Janitor Service 2026-08-06 10:08:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1378
Comment 5 Méven 2026-08-07 10:17:40 UTC
Git commit 62b12e9c307372100a7e70176abd45f6628d1b2b by Méven Car, on behalf of Bharadwaj Raju.
Committed on 07/08/2026 at 10:17.
Pushed by meven into branch 'master'.

Fix icon lookup for "Open Terminal" actions

Using KDesktopFile to read the desktop entry from a desktop name (i.e.
"org.something.terminalapp.desktop") is incorrect; KDesktopFile is for
making modifications to a desktop entry, and hence does not even try to
find existing desktop entries in the correct places.
See src/core/kdesktopfile.cpp in the KConfig source code, particularly
the call to KConfigPrivate::changeFileName.

The result of this is that ultimately it does not find desktop entries
located in /usr/share/applications or the Flatpak equivalent, and hence
fails to locate icons.

Instead, use KService::serviceByStorageId.

Steps to reproduce:
  1. Install a terminal app like WezTerm
  2. Set it as default in System Settings > Default Applications
  3. Right click inside a folder in Dolphin
  4. Observe the lack of an icon
Related: bug 501435

M  +3    -3    src/dolphinmainwindow.cpp

https://invent.kde.org/system/dolphin/-/commit/62b12e9c307372100a7e70176abd45f6628d1b2b