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

Is there a way to re-use an existing launched runx session? #4

Closed
jimmyharris opened this issue Aug 30, 2020 · 3 comments
Closed

Is there a way to re-use an existing launched runx session? #4

jimmyharris opened this issue Aug 30, 2020 · 3 comments
Labels
question Further information is requested

Comments

@jimmyharris
Copy link

I prefer to have all of my instances of wsl consoles use the same xwindows session when I launch new terminals. Is there a way to tell runx to re-use a specific terminal if it exists at source time?

@mviereck
Copy link
Owner

mviereck commented Aug 30, 2020

runx provides variables DISPLAY and XAUTHORITY in its terminal output.
You can export these variables in your other terminals, and they will use the already running X server.

runx does not look for other instances of itself.

Edit:
What if you run e.g. one instance of xfce4-terminal and open new terminal windows from its menu? They will have the credential variables already set.

@mviereck mviereck added the question Further information is requested label Aug 30, 2020
@jimmyharris
Copy link
Author

I suppose I could save those variables and then write them into a file. But I would need to know when to clean those files up. I'll expand on this tomorrow.

@mviereck mviereck closed this as completed Nov 8, 2020
@mviereck
Copy link
Owner

mviereck commented Aug 9, 2022

The idea of re-using already running X server is currently discussed in #8.

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

No branches or pull requests

2 participants