Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unset $DISPLAY when running under mosh #334

Closed
grep0 opened this issue Oct 12, 2012 · 6 comments
Closed

Unset $DISPLAY when running under mosh #334

grep0 opened this issue Oct 12, 2012 · 6 comments

Comments

@grep0
Copy link

grep0 commented Oct 12, 2012

mosh does not support X11 forwarding, but it is still keeping $DISPLAY env. It breaks the programs that work differently depending on X11 presence.

If would be great to unset $DISPLAY in a shell under mosh.

@brmiller
Copy link

It would be better if mosh could support X11 forwarding, but is this even possible, given the architecture (of X)?

@bdrewery
Copy link

@brmiller See also #41

@keithw
Copy link
Member

keithw commented Oct 19, 2012

I don't understand why your DISPLAY is set in the first place -- do you have ssh configured to use -X all the time...?

@brmiller
Copy link

YES!

-----Original message-----
To: keithw/mosh mosh@noreply.github.com;
CC: Brendan Miller brmiller@bdkk.net;
From: Keith Winstein notifications@github.com
Sent: Fri 10-19-2012 02:41 pm
Subject: Re: [mosh] Unset $DISPLAY when running under mosh (#334)

I don't understand why your DISPLAY is set in the first place -- do you have
ssh configured to use -X all the time...?


Reply to this email directly or view it on GitHub.

@eminence
Copy link
Member

Maybe mosh can add the -x option to ssh, to disable X11 forwarding?

@cgull cgull added this to the mosh-1.2.6 milestone Jun 26, 2015
@eminence eminence removed this from the mosh-1.2.6 milestone Aug 24, 2017
@achernya
Copy link
Collaborator

It seems that having mosh be in the business of deciding which environment variables should (not) be passed in is extra complexity. For local environments that need this behavior we suggest writing a small wrapper script that replaces mosh-server, unsets the appropriate variables, and then exec's the real mosh-server binary.

@achernya achernya closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants