Wishlist: Add option to set XDG_SESSION_TYPE automatically
Many applications require some environment variable to be set in order to run properly with waypipe. This is nicely mentioned in the man pages, together with some examples. However, the proposed methods to set the required environment variables are not always handy and in some cases may not play nice with situations in which you do not use waypipe:
-
.ssh/environment
is a sort of environment file for all ssh sessions and not just for those managed by waypipe - Using
SendEnv
andAcceptEnv
needs the sendenv to be passed on the command line only for sessions managed by waypipe for the same reason - Using
env
on the command line is the easiest thing, but is a bit wordy when you need to do it every time
Because at least XDG_SESSION_TYPE=wayland
will almost invariably need to be set every time, would be nice to have an option on the waypipe command line to set it automatically. In the end waypipe already sets automatically the WAYLAND_DISPLAY
variable. Namely waypipe -W ssh server konsole
is way shorter than waypipe ssh server "env XDG_SESSION_TYPE=wayland konsole"
. Furthermore, having an option makes it much easier to create a shell alias.