dshoreman / nextshot

A simple tool for taking screenshots on Linux and sharing via Nextcloud
GNU General Public License v2.0
42 stars 3 forks source link

Add support for overriding environment #56

Closed dshoreman closed 5 years ago

dshoreman commented 5 years ago

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.

Closes #36.