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

no graphics of tmux session before ssh -X #46

Open
szcf-weiya opened this issue Aug 24, 2022 · 0 comments
Open

no graphics of tmux session before ssh -X #46

szcf-weiya opened this issue Aug 24, 2022 · 0 comments

Comments

@szcf-weiya
Copy link
Owner

Firstly, if I ssh -X to server, then open a tmux session, and plot in it, then the window can pop up.

However, for the tmux session that was established before ssh -X, even though I re-enter in the session opened by ssh -X, the plot window still cannot pop up.

The first attempt is to reset the display env variable, since I noticed that after ssh -X, either in bash or in tmux,

$ echo $DISPLAY 
localhost:11.0

or

> Sys.getenv("DISPLAY")
[1] "localhost:11.0"

while for the old tmux session,

> Sys.getenv("DISPLAY")
[1] ""

so I guess if I reset the env, the window should work, so I reset the env variable via

> Sys.setenv("DISPLAY" = "localhost:11.0")
> Sys.getenv("DISPLAY")                                                                                                                                                                
[1] "localhost:11.0"

however, no graphics window pops up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant