diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-22 12:33:26 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-22 12:33:26 +0000 |
commit | 7e6b749897cff0bd98dddb314f0a9c6a60e87168 (patch) | |
tree | c91f67e4db8381420667f565146d4b9a8f269c5d | |
parent | 5d3f55c855beed9b52fcc36da44e30c4c24c4a1b (diff) | |
download | mpd-7e6b749897cff0bd98dddb314f0a9c6a60e87168.tar.gz mpd-7e6b749897cff0bd98dddb314f0a9c6a60e87168.tar.xz mpd-7e6b749897cff0bd98dddb314f0a9c6a60e87168.zip |
Only try to set the xterm title of DISPLAY is set.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@360 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -85,7 +85,8 @@ main(int argc, char *argv[]) } /* set xterm title */ - printf("%c]0;%s%c", '\033', PACKAGE " v" VERSION, '\007'); + if( getenv("DISPLAY") ) + printf("%c]0;%s%c", '\033', PACKAGE " v" VERSION, '\007'); /* install exit function */ atexit(exit_and_cleanup); |