sway icon indicating copy to clipboard operation
sway copied to clipboard

Be able to specify Wayland socket name

Open mkoskar opened this issue 2 years ago • 2 comments

To aid predictability of WAYLAND_DISPLAY, for when it needs to be specified outside of existing Wayland session, especially when multiple sessions might exist.

Taking inspiration from weston:

-Sname, --socket=name
       Weston  will  listen  in the Wayland socket called name.  Weston
       will export WAYLAND_DISPLAY with this value in  the  environment
       for  all  child  processes to allow them to connect to the right
       server automatically.

So specifying e.g., --socket=wayland-vt1 would yield WAYLAND_DISPLAY=wayland-vt1.

mkoskar avatar May 13 '23 14:05 mkoskar

Would be very useful for some applications with sway's headless mode.

csergi avatar Oct 20 '24 18:10 csergi

Related: https://github.com/swaywm/sway/pull/8259

emersion avatar Oct 20 '24 18:10 emersion