[dolphin] [Bug 505527] New: Double-click on background to open current directory in terminal opens $HOME in terminal instead when current directory is remote

Sam Birch bugzilla_noreply at kde.org
Thu Jun 12 16:07:11 BST 2025


https://bugs.kde.org/show_bug.cgi?id=505527

            Bug ID: 505527
           Summary: Double-click on background to open current directory
                    in terminal opens $HOME in terminal instead when
                    current directory is remote
    Classification: Applications
           Product: dolphin
      Version First 25.04.1
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: view-engine: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: bugs.kde.org at munkynet.org
                CC: kfm-devel at kde.org
  Target Milestone: ---

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 at 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list