From 30cb9e69dcf4ae2de2c834ce87e4e575780be8d2 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Wed, 5 Oct 2016 00:10:16 +0100 Subject: [PATCH] Don't try to start autocutsel if there is no X session running --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile b/.profile index ba65466..7ca5725 100644 --- a/.profile +++ b/.profile @@ -16,7 +16,7 @@ export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.su export QT_STYLE_OVERRIDE=GTK+ # Merge system clipboards -if which autocutsel &>/dev/null; then +if ! [ -z $DISPLAY ] && which autocutsel &>/dev/null; then autocutsel -fork & autocutsel -selection PRIMARY -fork & fi