mviereck / runx

Provide X server on MS Windows with cookie authentication.
MIT License
87 stars 14 forks source link

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

Closed jimmyharris closed 3 years ago

jimmyharris commented 4 years ago

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 commented 4 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.

jimmyharris commented 4 years ago

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 commented 2 years ago

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