Sway: SWAYSOCK not set inside xwayland

Created on 22 Jan 2016  路  9Comments  路  Source: swaywm/sway

This means that sway --get-socketpath returns "sway socket not detected"

It is not too much of an issue but more of an inconvenience.

Most helpful comment

You can set which variables tmux grabs from its environment when it's attached in a terminal using the update-environment option. By default it's set to copy over some environment variables relating to Xorg.

All 9 comments

Can you elaborate? It's set so far as I can tell.

So inside sway if I open termite (native wayland) and run swaymsg i get { success : true}. If i use st (xwayland) and run swaymsg I get sway no socket detected

Interesting. I cannot reproduce.

I thought it might have been because I have xorg in tty1 but I tried just with sway and no xorg running at all and it still happens.

Ok I know how to reproduce.

Open sway spawn a terminal with tmux: st -e tmux
Exit sway without closing st. Just mod+shift+e
Check the processes. You should see tmux still running.
Run sway again.
Open terminal
Run swaymsg and it wont work

Okay if you reattach to a tmux that was created with an older SWAYSOCK then of course it's not going to work.

Hmm I would have thought that tmux would have been killed when I exit sway.

The entire purpose of tmux is to do the opposite.

You can set which variables tmux grabs from its environment when it's attached in a terminal using the update-environment option. By default it's set to copy over some environment variables relating to Xorg.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Olie440 picture Olie440  路  4Comments

johanhelsing picture johanhelsing  路  3Comments

mcmfb picture mcmfb  路  3Comments

RyanDwyer picture RyanDwyer  路  3Comments

ddevault picture ddevault  路  4Comments