View previous topic :: View next topic |
Author |
Message |
MALDATA n00b
Joined: 07 Apr 2011 Posts: 53
|
Posted: Mon Jul 26, 2021 3:07 am Post subject: [SOLVED] GTK apps no longer open remote X11 display |
|
|
Hi all,
Until recently, I was able to connect to a host via SSH (with X11 forwarding) and run any graphical application on my remote PC. A few days ago, I noticed that some applications now won't open on the remote PC... the window opens on the host instead. For example, about a week ago, on my remote PC, I could do:
Code: |
ssh -Y myuser@myhost
gnucash
|
And gnucash would open as expected on the remote machine. A couple days ago, I did exactly the same thing, and gnucash never opened on the remote machine. When I went to look at the host (on which my user was already logged in to a gnome session), gnucash had opened there. I tried a few other applications, and it seems like all the GTK apps open on the host, and everything else opens on the remote machine. For example, emacs, display, and kaffeine all open correctly on my remote machine, but gnucash, gnome-terminal, seahorse, and evince all open on the host.
I looked at my emerge log, and it looks like I emerged an update to gnome-desktop (40.3) and gdm (40.1) a few days ago. Also, there's been some new wayland stuff lately, and I really don't understand what that is yet.
So, I'm not quite sure how to debug this. Any thoughts? Thanks!
Last edited by MALDATA on Sat Aug 07, 2021 3:51 am; edited 1 time in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Jul 26, 2021 4:20 am Post subject: |
|
|
What happens if you run
Code: | WAYLAND_DISPLAY='' gnucash |
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Mon Jul 26, 2021 3:27 pm Post subject: |
|
|
mike155's question matches my first suspicion. If that pans out, then the explanation is that one of your updates switched to use Wayland instead of X11 for a display protocol, and Wayland doesn't handle network transparency. There's been talk of it for years, but as far as I know, you still can't forward Wayland over an ssh connection the way you can with an X11 application. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Jul 26, 2021 3:44 pm Post subject: Re: GTK apps no longer open remote X11 display |
|
|
MALDATA wrote: | I looked at my emerge log, and it looks like I emerged an update to gnome-desktop (40.3) and gdm (40.1) a few days ago. Also, there's been some new wayland stuff lately, and I really don't understand what that is yet. |
Gnome's latest does use wayland, and xwayland, they are moving away from X11, so not sure if you can not have wayland.
If you can it would be somewhere in the guts of gnome config stuff is my guess.
As far as networking with wayland, you'll need auth stuff .Xauthority, etc, and wayvnc and waypipe, to complete the plumbing. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
MALDATA n00b
Joined: 07 Apr 2011 Posts: 53
|
Posted: Sat Aug 07, 2021 3:50 am Post subject: |
|
|
mike155 wrote: | What happens if you run
Code: | WAYLAND_DISPLAY='' gnucash |
|
I never closed the loop on this, but this is exactly the workaround I needed. Thank you! |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sat Aug 07, 2021 10:03 am Post subject: |
|
|
This is the preferred way to make a gtk app use X instead of wayland GDK_BACKEND=X11
If you export this in your .bash_profile, then it would apply to all gtk apps.
Or at least that's what gnome/gtk developers have said in the past. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|