Package: scratch
Version: 1.4.0.6~dfsg1-2
Severity: normal

Hi, scratch doesn't work with LTSP thin clients because -xshm is forced.
Here's a patch that works around the problem:


=== modified file 'debian/bin/scratch'
--- debian/bin/scratch  2012-07-02 14:58:46 +0000
+++ debian/bin/scratch  2012-11-07 16:48:23 +0000
@@ -7,7 +7,8 @@
 VM_VERSION=`find /usr/lib/squeak/ -name "squeakvm" -type f|cut -f5 -d"/"`
 SQ_DIR=/usr/lib/squeak/$VM_VERSION
 VM="$SQ_DIR/squeakvm"
-VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins
/usr/lib/scratch/plugins/:$SQ_DIR/"
+test -z "${DISPLAY%:*}" && XSHM="-xshm"
+VMOPTIONS="-encoding UTF-8 -vm-display-x11 $XSHM -plugins
/usr/lib/scratch/plugins/:$SQ_DIR/"
 IMAGE="/usr/share/scratch/Scratch.image"
 IMOPTIONS=""
 DOCUMENT=""


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to