Bug#644388: boinc-client: xhost is unable to open display in init script

John Feuerstein john at feurix.com
Wed Oct 5 12:07:03 UTC 2011

Package: boinc-client
Version: 6.13.1+dfsg-2
Severity: minor
Tags: patch

The boinc-client init script makes use of xhost, which uses the DISPLAY
environment variable to get the default host and display to use. The
init script should check for DISPLAY before attempting to use xhost:

Starting BOINC core client: boincxhost: unable to open display ""
xhost error ignored, GPU computing may not be possible

This trivial patch would fix it:

-    if [ -x /usr/bin/xhost ]; then
+    if [ -n "$DISPLAY" -a -x /usr/bin/xhost ]; then

On the other hand, I'm not sure if this belongs into the init script at
all. There's usually no display running at system init. Perhaps it would
be better to drop a file in /etc/X11/Xsession.d, or add the entry to

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages boinc-client depends on:
ii  adduser                3.113           
ii  ca-certificates        20110502+nmu1   
ii  debconf [debconf-2.0]  1.5.41          
ii  libc6                  2.13-21         
ii  libcurl3               7.21.7-3        
ii  libgcc1                1:4.6.1-13      
ii  libssl1.0.0            1.0.0e-2        
ii  libstdc++6             4.6.1-13        
ii  libx11-6               2:1.4.4-2       
ii  libxss1                1:1.2.1-2       
ii  python                 2.7.2-7         
ii  zlib1g                 1:

Versions of packages boinc-client recommends:
ii  ia32-libs  20110609

Versions of packages boinc-client suggests:
ii  boinc-app-seti     <none>       
ii  boinc-manager      6.13.1+dfsg-2
ii  x11-xserver-utils  7.6+3        

More information about the pkg-boinc-devel mailing list