Bug 488864

Summary: Selecting Default Terminal Emulator other than konsole, without installing konsole first, results in various issues.
Product: [Applications] systemsettings Reporter: yryhl943n <yryhl943n>
Component: kcm_componentchooserAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, nicolas.fella
Priority: NOR    
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=461998
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Attached are the results from `pacman -Qe`. (Installed packages with versions AFTER removing konsole.)

Description yryhl943n@mozmail.com 2024-06-21 05:40:46 UTC
Created attachment 170721 [details]
Attached are the results from `pacman -Qe`. (Installed packages with versions AFTER removing konsole.)

SUMMARY
I did not install the konsole package as I had planned to use Alacritty for my terminal emulator.
I was able to install Alacritty and run it without issue from the application launcher.
I opened System Settings -> Default Applications and used the drop down for "Terminal emulator" to select Alacritty and noticed no issues. However, when attempting to use the Right Click -> Context menu -> "Open Terminal Here" option inside Dolphin, nothing appeared to happen. 

Steps Taken and Results:
Additionally, Neovim was selected as my Default Application for "Text editor". 
- Attempting to use Right Click -> Context menu -> Open with Neovim from Dolphin would result in an error from the notification menu/journalctl. 
- Attempting to open Neovim from the application launcher would also result in an error from the notification menu/journalctl.
- Opening Alacritty and running nvim command would work as expected.

I installed the konsole package and set it to the Default Application for Terminal Emulator.
- Installed using `pacman -S konsole` 
- Dolphin -> Right Click -> Context Menu -> "Open Terminal Here" would open konsole at the location as expected.
- Dolphin -> Right Click -> Context menu -> "Open with Neovim" opened the file in Neovim inside konsole as expected.
- Application Launcher -> Neovim would open nvim in konsole as expected.

I changed the Default Application for Terminal Emulator back to Alacritty using System Settings drop down in Default Applications:
- Dolphin -> Right Click -> Context Menu -> "Open Terminal Here" would open Alacritty at the location as expected.
- Dolphin -> Right Click -> Context menu -> "Open with Neovim" opened the file with Neovim inside Alacritty as expected.
- Application Launcher -> Neovim would open nvim in Alacritty as expected.

I used `pacman -Rns konsole` to remove the konsole package and config files:
- Dolphin -> Right Click -> Context Menu -> "Open Terminal Here" would open Alacritty at the location as expected.
- Dolphin -> Right Click -> Context menu -> "Open with Neovim" opened the file with Neovim inside Alacritty as expected.
- Application Launcher -> Neovim would open nvim in Alacritty as expected.

STEPS TO REPRODUCE
1. Install `plasma` package group from Arch repo.
2. Install `dolphin` package from Arch repo.
3. Install `alacritty` package from Arch repo. 
4. Install `neovim` package from Arch repo.
5, See SUMMARY section above for additional steps taken.

OBSERVED RESULT
Observed results are documented in SUMMARY section above.
Additionally, the following errors were noted in `journalctl`:
- dolphin[2353]: kf.kio.core: Terminal "konsole" not found, service "Neovim"
- dolphin[2353]: kf.kio.gui: Terminal "konsole" not found while trying to run /usr/share/application/nvim.desktop
- plasmashell[1856]: kf.kio.core: Terminal "konsole" not found, service "Neovim"
- plasmashell[1856]: kf.kio.gui: Terminal "konsole" not found while trying to run /usr/share/application/nvim.desktop
- dolphin[7722]: QGestureManager::deliverEvent: could not find the target for gesture

EXPECTED RESULT
Expected results are documented in SUMMARY section above.
Summary: Expected not requiring to install konsole in order to use a different default terminal emulator.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Arch Linux x86_64 / Kernel: Linux 6.9.5-arch1-1
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Shell: bash 5.2.26
WM: KWin (Wayland)
WM Theme: Breeze
NVIM: v0.10.0
alacritty: 0.13.2

Attached are the results from `pacman -Qe`. (Installed packages with versions AFTER removing konsole.)
Comment 1 Nate Graham 2024-06-25 23:51:45 UTC
Possibly some overlap with Bug 461998.