1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Don't try to start autocutsel if there is no X session running

This commit is contained in:
Joe Groocock 2016-10-05 00:10:16 +01:00
parent 356f6ff6b0
commit 30cb9e69dc

View File

@ -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