[GNC] X Forwarding starts session on remote machine?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[GNC] X Forwarding starts session on remote machine?

Andrew Clark
Hi,

I came home and logged in to my main machine (discus) again, directly on
the console.

Now, when I ssh in from my laptop (pleco) with -X and start GNUCash, it
starts on the my main machine's X server.

e.g.

aclark@pleco 0 ~ $ ssh discus -X -v
OpenSSH_7.9p1 Debian-4, OpenSSL 1.1.1a  20 Nov 2018
debug1: Reading configuration data /home/aclark/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to discus.ajfclark.com [192.168.1.4] port 22.
debug1: Connection established.

[auth stuff snipped ]

Authenticated to discus.ajfclark.com ([192.168.1.4]:22).debug1: channel 0:
new [client-session]
Authenticated to discus.ajfclark.com ([192.168.1.4]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [hidden email]
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype [hidden email]
want_reply 0
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = en_AU.UTF-8
Linux discus 4.18.0-2-amd64 #1 SMP Debian 4.18.10-2 (2018-10-07) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 28 11:18:00 2018 from 192.168.1.94
aclark@discus 0 ~ $ echo $DISPLAY
localhost:10.0
aclark@discus 0 ~ $ gnucash
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 41602
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 2
Traceback (most recent call last):
  File "/usr/share/gnucash/python/init.py", line 2, in <module>
    import gnucash._sw_app_utils as _sw_app_utils
ModuleNotFoundError: No module named 'gnucash'
Found Finance::Quote version 1.47

And gnucash appears on Discus' monitor.

When I close gnucash on discus' display, pleco returns to the command
prompt. If I logout of Discus, leaving it at the GDM3 prompt, and rerun the
command, it forwards to the laptop display correctly:

aclark@discus 0 ~ $ gnucash
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 41744
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from ::1 41746
debug1: channel 2: new [x11]
debug1: confirm x11
debug1: channel 2: FORCE input drain
debug1: channel 2: free: x11, nchannels 3
Traceback (most recent call last):
  File "/usr/share/gnucash/python/init.py", line 2, in <module>
    import gnucash._sw_app_utils as _sw_app_utils
ModuleNotFoundError: No module named 'gnucash'
Found Finance::Quote version 1.47

Why is GNUCash ignoring the $DISPLAY variable when I'm logged in on discus?

--
Cheers,

Andrew.
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

Andrew Clark
On Fri, 28 Dec 2018 at 11:30, Andrew Clark <[hidden email]> wrote:

> Why is GNUCash ignoring the $DISPLAY variable when I'm logged in on discus?
>

I did a little bit more digging this evening and have had some success:

gnucash --display="$DISPLAY"

Behaves as expected and forwards the display to the ssh tunnel, just like
xeyes, xlogo, google-chrome, etc do without needing to specify the display.

I have since noticed that other gnome apps also require me to force the
display with --display="$DISPLAY"

Is there some other environment variable that's causing this?

--
Cheers,

Andrew.
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

Derek Atkins-3
Check $DISPLAY

-derek
Sent using my mobile device. Please excuse any typos.
On December 30, 2018 7:45:28 AM Andrew Clark <[hidden email]> wrote:

> On Fri, 28 Dec 2018 at 11:30, Andrew Clark <[hidden email]> wrote:
>
>> Why is GNUCash ignoring the $DISPLAY variable when I'm logged in on discus?
>>
>
> I did a little bit more digging this evening and have had some success:
>
> gnucash --display="$DISPLAY"
>
> Behaves as expected and forwards the display to the ssh tunnel, just like
> xeyes, xlogo, google-chrome, etc do without needing to specify the display.
>
> I have since noticed that other gnome apps also require me to force the
> display with --display="$DISPLAY"
>
> Is there some other environment variable that's causing this?
>
> --
> Cheers,
>
> Andrew.
> _______________________________________________
> gnucash-user mailing list
> [hidden email]
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

Andrew Clark
On Mon., 31 Dec. 2018, 00:23 Derek Atkins <[hidden email] wrote:

> Check $DISPLAY
>

Thanks Derek, but that's my issue. $DISPLAY is set but gnucash doesn't
forward the display ot the xserver in $DISPLAY unless I force it by
manually supplying the $DISPLAY variable to the --display parameter.

e.g.

This works:

gnucash --display="$DISPLAY"


While this doesn't:

gnucash


Other non-gnome x applications work as expected. Gnome applications also
require me to append --display "$DISPLAY" to the commandline.
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

Robert Heller
At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark <[hidden email]> wrote:

>
> On Mon., 31 Dec. 2018, 00:23 Derek Atkins <[hidden email] wrote:
>
> > Check $DISPLAY
> >
>
> Thanks Derek, but that's my issue. $DISPLAY is set but gnucash doesn't
> forward the display ot the xserver in $DISPLAY unless I force it by
> manually supplying the $DISPLAY variable to the --display parameter.
>
> e.g.
>
> This works:
>
> gnucash --display="$DISPLAY"
>
>
> While this doesn't:
>
> gnucash
>
>
> Other non-gnome x applications work as expected. Gnome applications also
> require me to append --display "$DISPLAY" to the commandline.

This suggests either a Gnome bug or a Gnome misset gnomw-setting...

> _______________________________________________
> gnucash-user mailing list
> [hidden email]
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>                                                  

--
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[hidden email]       -- Webhosting Services
                             
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Robert Heller                      -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@deepsoft.com        -- http://www.deepsoft.com/ModelRailroadSystem/
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

John Ralls-2


> On Dec 30, 2018, at 12:58 PM, Robert Heller <[hidden email]> wrote:
>
> At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark <[hidden email]> wrote:
>
>>
>> On Mon., 31 Dec. 2018, 00:23 Derek Atkins <[hidden email] wrote:
>>
>>> Check $DISPLAY
>>>
>>
>> Thanks Derek, but that's my issue. $DISPLAY is set but gnucash doesn't
>> forward the display ot the xserver in $DISPLAY unless I force it by
>> manually supplying the $DISPLAY variable to the --display parameter.
>>
>> e.g.
>>
>> This works:
>>
>> gnucash --display="$DISPLAY"
>>
>>
>> While this doesn't:
>>
>> gnucash
>>
>>
>> Other non-gnome x applications work as expected. Gnome applications also
>> require me to append --display "$DISPLAY" to the commandline.
>
> This suggests either a Gnome bug or a Gnome misset gnomw-setting...

Or that the main display is Wayland rather than X11.

Regards,
John Ralls

_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

Andrew Clark
On Mon, 31 Dec 2018 at 08:22, John Ralls <[hidden email]> wrote:

>
>
> > On Dec 30, 2018, at 12:58 PM, Robert Heller <[hidden email]> wrote:
> >
> > At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark <[hidden email]>
> wrote:
> >
> >>
> >> On Mon., 31 Dec. 2018, 00:23 Derek Atkins <[hidden email] wrote:
> >>
> >>> Check $DISPLAY
> >>>
> >>
> >> Thanks Derek, but that's my issue. $DISPLAY is set but gnucash doesn't
> >> forward the display ot the xserver in $DISPLAY unless I force it by
> >> manually supplying the $DISPLAY variable to the --display parameter.
> >>
> >> e.g.
> >>
> >> This works:
> >>
> >> gnucash --display="$DISPLAY"
> >>
> >>
> >> While this doesn't:
> >>
> >> gnucash
> >>
> >>
> >> Other non-gnome x applications work as expected. Gnome applications also
> >> require me to append --display "$DISPLAY" to the commandline.
> >
> > This suggests either a Gnome bug or a Gnome misset gnomw-setting...
>
> Or that the main display is Wayland rather than X11.
>

That it is. I wasn't aware that running Wayland made some applications
ignore the $DISPLAY setting.

Is that by design or is there some other environment variable I should be
setting ?

--
Cheers,

Andrew.
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

John Ralls-2


> On Dec 30, 2018, at 1:25 PM, Andrew Clark <[hidden email]> wrote:
>
>
> On Mon, 31 Dec 2018 at 08:22, John Ralls <[hidden email]> wrote:
>
>
> > On Dec 30, 2018, at 12:58 PM, Robert Heller <[hidden email]> wrote:
> >
> > At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark <[hidden email]> wrote:
> >
> >>
> >> On Mon., 31 Dec. 2018, 00:23 Derek Atkins <[hidden email] wrote:
> >>
> >>> Check $DISPLAY
> >>>
> >>
> >> Thanks Derek, but that's my issue. $DISPLAY is set but gnucash doesn't
> >> forward the display ot the xserver in $DISPLAY unless I force it by
> >> manually supplying the $DISPLAY variable to the --display parameter.
> >>
> >> e.g.
> >>
> >> This works:
> >>
> >> gnucash --display="$DISPLAY"
> >>
> >>
> >> While this doesn't:
> >>
> >> gnucash
> >>
> >>
> >> Other non-gnome x applications work as expected. Gnome applications also
> >> require me to append --display "$DISPLAY" to the commandline.
> >
> > This suggests either a Gnome bug or a Gnome misset gnomw-setting...
>
> Or that the main display is Wayland rather than X11.
>
> That it is. I wasn't aware that running Wayland made some applications ignore the $DISPLAY setting.
>
> Is that by design or is there some other environment variable I should be setting ?

IIUC Wayland has its own display variable, $WAYLAND_DISPLAY. Apparently Gtk doesn't have a good way of determining what backend to use, or maybe it prefers to run on Wayland if it finds it even the particular login session is X11.

You could try exporting GDK_BACKEND=x11 in your remote session before starting any Gtk programs.

Regards,
John Ralls

_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] X Forwarding starts session on remote machine?

Andrew Clark
WAYLAND_DISPLAY isn't set:

aclark@discus 0 ~ $ env | grep DISPLAY
DISPLAY=localhost:10.0
aclark@discus 0 ~ $ env | grep WAY
aclark@discus 0 ~ $ env | grep GTK
aclark@discus 0 ~ $


Which is why I was confused as to how it was finding the wayland server.

Setting GTK_BACKEND=x11 does work though.

On Mon, 31 Dec 2018 at 10:37, John Ralls <[hidden email]> wrote:

>
>
> > On Dec 30, 2018, at 1:25 PM, Andrew Clark <[hidden email]> wrote:
> >
> >
> > On Mon, 31 Dec 2018 at 08:22, John Ralls <[hidden email]> wrote:
> >
> >
> > > On Dec 30, 2018, at 12:58 PM, Robert Heller <[hidden email]>
> wrote:
> > >
> > > At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark <[hidden email]>
> wrote:
> > >
> > >>
> > >> On Mon., 31 Dec. 2018, 00:23 Derek Atkins <[hidden email] wrote:
> > >>
> > >>> Check $DISPLAY
> > >>>
> > >>
> > >> Thanks Derek, but that's my issue. $DISPLAY is set but gnucash doesn't
> > >> forward the display ot the xserver in $DISPLAY unless I force it by
> > >> manually supplying the $DISPLAY variable to the --display parameter.
> > >>
> > >> e.g.
> > >>
> > >> This works:
> > >>
> > >> gnucash --display="$DISPLAY"
> > >>
> > >>
> > >> While this doesn't:
> > >>
> > >> gnucash
> > >>
> > >>
> > >> Other non-gnome x applications work as expected. Gnome applications
> also
> > >> require me to append --display "$DISPLAY" to the commandline.
> > >
> > > This suggests either a Gnome bug or a Gnome misset gnomw-setting...
> >
> > Or that the main display is Wayland rather than X11.
> >
> > That it is. I wasn't aware that running Wayland made some applications
> ignore the $DISPLAY setting.
> >
> > Is that by design or is there some other environment variable I should
> be setting ?
>
> IIUC Wayland has its own display variable, $WAYLAND_DISPLAY. Apparently
> Gtk doesn't have a good way of determining what backend to use, or maybe it
> prefers to run on Wayland if it finds it even the particular login session
> is X11.
>
> You could try exporting GDK_BACKEND=x11 in your remote session before
> starting any Gtk programs.
>
> Regards,
> John Ralls
>
>

--
Cheers,

Andrew.
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.