Adds a new optional --env flag which accepts values x or x11 to force X11; w, wl, way or wayland to force Wayland; or auto to use the existing automatic detection.
Should fix any issues running inside terminal multiplexers such as Tmux where the session was started in a different environment to the one that's currently running.
For example, if you start the tmux server under X11 when the PC boots, then switch to Wayland and run Nextshot from within tmux, it would normally detect the X11 session and attempt to use X-based tools before failing. By running nextshot --env=wayland, Nextshot will not attempt to use X-only tools such as Slop and Xclip.
Adds a new optional
--env
flag which accepts valuesx
orx11
to force X11;w
,wl
,way
orwayland
to force Wayland; orauto
to use the existing automatic detection.Should fix any issues running inside terminal multiplexers such as Tmux where the session was started in a different environment to the one that's currently running.
For example, if you start the tmux server under X11 when the PC boots, then switch to Wayland and run Nextshot from within tmux, it would normally detect the X11 session and attempt to use X-based tools before failing. By running
nextshot --env=wayland
, Nextshot will not attempt to use X-only tools such as Slop and Xclip.Closes #36.