Bug 403784 - ssh X forwarding: clicking a file opens window on remote
Summary: ssh X forwarding: clicking a file opens window on remote
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 18.12.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-30 22:27 UTC by Abhishek Anand
Modified: 2020-10-29 01:01 UTC (History)
3 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 Abhishek Anand 2019-01-30 22:27:41 UTC
SUMMARY
When dolphin is opened over SSH X forwarding, clicking on a file (e.g. abc.png) opens the corresponding graphical application on the DISPLAY of the remote machine (DISPLAY=:0) and not on of the SSH client.

STEPS TO REPRODUCE
1. ssh -Y remote
2. dolphin .
3. click on a .png file

OBSERVED RESULT
the gwenview window opens on the remote machine.

EXPECTED RESULT
the gwenview window should open on the client


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Most likely, it affects all versions of plasma. 
Instead of directly opening the clicked file, it seems dolphin sends a message to plasmashell to open the file; dolphin is not the parent of the new graphical process (e.g. gwenview, the parent is plasmashell.
plasmashell uses DISPLAY=:0. so the new window opens on the remote machine.
https://unix.stackexchange.com/questions/496814/ssh-x-forwarding-gui-window-opens-on-remote?noredirect=1
Comment 1 Justin Zobel 2020-10-27 01:19:41 UTC
Does it change if you set the DISPLAY=: to 1 or whatever number your SSH tunneled app is?
Comment 2 Abhishek Anand 2020-10-29 01:01:14 UTC
just checked and it works correctly now. I'm sshing from a windows 10 pro laptop to my manjaro kde desktop.