Bug 505527 - Double-click on background to open current directory in terminal opens $HOME in terminal instead when current directory is remote
Summary: Double-click on background to open current directory in terminal opens $HOME ...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (other bugs)
Version First Reported In: 25.04.1
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-12 15:07 UTC by Sam Birch
Modified: 2025-06-18 22:43 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 Sam Birch 2025-06-12 15:07:11 UTC
SUMMARY

STEPS TO REPRODUCE
1. In Dolphin, set Background: Double-click triggers to "Open in Terminal".
2. Navigate to a remote location. In my case these are fish:// URLs, but I suspect any non-file:/// URL would do. In this example: "fish://sam-birch@buildvm:22/home/sam-birch/projects/linux/arch/arm64/boot/dts/rockchip/"
3. Double click on the background.
4. Run "pwd" in the terminal.

OBSERVED RESULT
"pwd" outputs "/home/sam-birch".

EXPECTED RESULT
"pwd" outputs "/run/user/1000/kio-fuse-gPPzTW/fish/sam-birch@buildvm:22/home/sam-birch/projects/linux/arch/arm64/boot/dts/rockchip".

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.9-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 31.0 GiB of RAM
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3050 Laptop GPU
Manufacturer: LENOVO
Product Name: 21DA000WUS
System Version: ThinkPad T15p Gen 3

ADDITIONAL INFORMATION
It seems that Dolphin intends to disallow opening remote folders in Konsole, since the "Open Terminal Here" context menu item is hidden for remote locations. So my *guess* is that they just missed the background-double-click "Open in Terminal". But *my* expectation is that Dolphin would know that Konsole can't handle KIO URLs, so would translate it into a kio-fuse path and pass *that* to Konsole.

I know Dolphin can do this, because the service menu entry supplied by Ghostty works for remote locations. Here's the contents of ~/.local/share/kio/servicemenus/com.mitchellh.ghostty.desktop on my system:

----8<-cut-here-----------------------------------------------------------------
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory
Actions=RunGhosttyDir

[Desktop Action RunGhosttyDir]
Name=Open Ghostty Here
Icon=com.mitchellh.ghostty
Exec=ghostty --working-directory=%F --gtk-single-instance=false
----8<-cut-here-----------------------------------------------------------------

Note the use of %F rather than %U. If I'm in a remote location in Dolphin and select "Open Ghostty Here" from the context menu, it opens in the kio-fuse directory just fine.
Comment 1 TraceyC 2025-06-18 22:43:52 UTC
I've confirmed the behavior of both Dolphin and Ghostty on git-master

As an example, I have a machine "htpc" that has Samba shares

In Dolphin, I can navigate to Network -> SMB -> htpc_music then
- Double click in the background in Dolphin - opens Konsole in /home/tracey
- Right click -> open GhosTTY here - opens in /run/user/1000/kio-fuse-IMAwHF/smb/htpc/music

That said, this is a request to change how Dolphin behaves, rather than a bug. Dolphin is working as coded. Changing this to a feature request and passing it along to the Dolphin developers.