/srv/irclogs.ubuntu.com/2012/11/07/#edubuntu.txt

=== yofel_ is now known as yofel
=== alkisg1 is now known as alkisg
alkisgstgraber: `scratch` fails to load on thin clients because the /usr/bin/scratch launcher is forcing -xshm:16:13
alkisg/usr/lib/squeak/4.4.7-2357/squeakvm -encoding UTF-8  -vm-display-x11 -xshm -plugins  /usr/lib/scratch/plugins/:/usr/lib/squeak/4.4.7-2357/  /usr/share/scratch/Scratch.image16:13
alkisgOne hack would be to check for LTSP_CLIENT/LTSP_FATCLIENT in the launcher, but I don't think the scratch packagers would want that16:14
stgraberyeah, sounds pretty hackish. Do we know why -xshm doesn't work with LTSP?16:14
alkisgIt's a remote display... no memory shared between client and server16:15
alkisgAnother method is to check if the active display is a local or remote one, and I was wondering if you are aware of any better methods to detect that than ck-list-sessions16:15
stgraberoh, that actually makes sense ;)16:15
stgraberI think it'd be best to parse $DISPLAY to avoid relying on consolekit16:17
stgraberbasically if $DISPLAY is set and contains something before the :, then it's remote (except for 127.0.0.1 but I haven't seen anyone use that yet)16:18
alkisgLocal: :0.0, ssh -X: localhost:13.0 (-xshm should work there), let me check fat clients...16:18
alkisgFat: :7.0, Thin: ip:7.016:19
alkisgSo it sounds ok, with the downside that ssh -X won't use shared memory, which is pretty minor... I'll propose that in a scratch bug report16:19
alkisgTy16:19
stgraberright, if you want the code to be absolutely right, you'd need to check for localhost/127.0.0.1/<any ip set on the machine> but that'd make the code quite a bit more complicated16:22
alkisgIt does sound strange though that X shm functions are not automatically enabled/disabled... X could surely know if the server is remote or local to the client...16:23
alkisgBut anyway what can we do :)16:23
alkisgstgraber: which way would be faster to get a precise backport? (1) fix it in debian, wait for R sync, then file SRU, or (2) fix it in R, file SRU? (and then file a bug report in debian, where I don't really care how much log it will need to be committed)?16:42
alkisg*long16:43
stgraberalkisg: fixing in R and then SRU is faster16:52
* alkisg just sent the debian bug report16:52
alkisgI'll make an R bug report as well16:53
alkisghttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692587 (will be available in a bit..)16:54
ubottuDebian bug 692587 in scratch "Don't use -xshm for remote displays" [Normal,Open]16:54
alkisghttps://bugs.launchpad.net/debian/+source/scratch/+bug/107603616:57
ubottuLaunchpad bug 1076036 in scratch (Ubuntu) "Don't use -xshm for remote displays" [Undecided,New]16:57

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!