X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FScripts%2FPublic.git;a=blobdiff_plain;f=wrapper_display;fp=wrapper_display;h=2482d96e9d343f313d994ca08ccfb88da04827f7;hp=0146d3a41060661def1859a9412f8e5fa6488fd0;hb=7cf9d72f20a26380d6bb15db1c2f111b104710dc;hpb=d64fa1612a339627fff84836acb4333256b2886c diff --git a/wrapper_display b/wrapper_display index 0146d3a..2482d96 100755 --- a/wrapper_display +++ b/wrapper_display @@ -24,7 +24,7 @@ # Feel like tipping/donating? https://www.immae.eu/licenses_and_tipping -eval `tmux show-env DISPLAY | grep -v "^-DISPLAY"` +eval `tmux show-env DISPLAY 2>/dev/null | grep -v "^-DISPLAY"` if `ss -o state established sport = :5901 | grep -q "^tcp"`; then DISPLAY=:1 fi