Closed jimmyharris closed 3 years ago
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.
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.
The idea of re-using already running X server is currently discussed in #8.
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?