-
Notifications
You must be signed in to change notification settings - Fork 21
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
Forcibly setting $DISPLAY to :0 #121
Comments
Maybe the best solution would be to save the original value of |
Yeah, that's my current workaround:
But apparently we have linux-setup on drones and I'm told some people have already had trouble with |
I am not even sure if the export needs to be there... |
It seems it works even without it. I will remove it and let's observe if it breaks something. |
This is the best attitude to have 😄. |
Improvement by reduction :-). |
Let's consider this solved until it breaks something then. |
On
linux-setup/appconfig/shell/commons.sh_git
Line 5 in ae0e32a
the
commons.sh
is setting the$DISPLAY
variable to:0
, in order to fix the keyboard repeat rate.This is problematic, since it breaks ssh X11 Forwarding - when you do e.g.
ssh -X user@host
, thesshd
onhost
sets$DISPLAY
to the appropriate value corresponding to the remote display assigned to the remote session, e.g.localhost:10.0
.Sourcing
commons.sh
in my.bashrc
/.zshrc
sets it back to:0
, so if I don't manually set it back I can't display remote graphical interfaces.Instead of manually setting the variable, I would recommend to instead check if
$DISPLAY
is set before doingxset r rate ...
.The text was updated successfully, but these errors were encountered: