[GNC] X Forwarding starts session on remote machine?

2018-12-27 Thread 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 no-more-sessi...@openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype hostkeys...@openssh.com
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 
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 
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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread Andrew Clark
On Fri, 28 Dec 2018 at 11:30, Andrew Clark  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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread Derek Atkins

Check $DISPLAY

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


On Fri, 28 Dec 2018 at 11:30, Andrew Clark  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
gnucash-user@gnucash.org
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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread Andrew Clark
On Mon., 31 Dec. 2018, 00:23 Derek Atkins  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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread Robert Heller
At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark  wrote:

> 
> On Mon., 31 Dec. 2018, 00:23 Derek Atkins  
> > 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
> gnucash-user@gnucash.org
> 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
hel...@deepsoft.com   -- Webhosting Services
 
___
gnucash-user mailing list
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread John Ralls



> On Dec 30, 2018, at 12:58 PM, Robert Heller  wrote:
> 
> At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark  wrote:
> 
>> 
>> On Mon., 31 Dec. 2018, 00:23 Derek Atkins > 
>>> 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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread Andrew Clark
On Mon, 31 Dec 2018 at 08:22, John Ralls  wrote:

>
>
> > On Dec 30, 2018, at 12:58 PM, Robert Heller  wrote:
> >
> > At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark 
> wrote:
> >
> >>
> >> On Mon., 31 Dec. 2018, 00:23 Derek Atkins  >>
> >>> 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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread John Ralls



> On Dec 30, 2018, at 1:25 PM, Andrew Clark  wrote:
> 
> 
> On Mon, 31 Dec 2018 at 08:22, John Ralls  wrote:
> 
> 
> > On Dec 30, 2018, at 12:58 PM, Robert Heller  wrote:
> > 
> > At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark  wrote:
> > 
> >> 
> >> On Mon., 31 Dec. 2018, 00:23 Derek Atkins  >> 
> >>> 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
gnucash-user@gnucash.org
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.


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

2018-12-30 Thread 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  wrote:

>
>
> > On Dec 30, 2018, at 1:25 PM, Andrew Clark  wrote:
> >
> >
> > On Mon, 31 Dec 2018 at 08:22, John Ralls  wrote:
> >
> >
> > > On Dec 30, 2018, at 12:58 PM, Robert Heller 
> wrote:
> > >
> > > At Mon, 31 Dec 2018 07:39:55 +1100 Andrew Clark 
> wrote:
> > >
> > >>
> > >> On Mon., 31 Dec. 2018, 00:23 Derek Atkins  > >>
> > >>> 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
gnucash-user@gnucash.org
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.