LeBar, Russell J | 16 Feb 2007 00:23

Re: KDE under Sun RAY


> -----Original Message-----
> From: Roland Kaeser [mailto:roland.kaeser <at> math.unizh.ch] 

I'm using a self-compiled 3.2.2 here with Sun Rays (using mobile
sessions) and with MetaFrame for UNIX 1.2.

> First: How can we integrate the utx-lock and the SUN-Ray 
> mobile sessions into the kde environment? It works on JDS. 
> But we couldn't get it working on KDE after reading all 
> avialable docs and mailing list entries for that problem.

I don't use utxlock. Instead I run utdetach. Basically, I copy
$KDEDIR/bin/kdesktop_lock to kdesktop_lock.orig and then use a wrapper
script. Below is an untested trimmed down version (e.g. no ICA client
checks).

#!/usr/bin/perl
use strict; use warnings;
#_SUN_SUNRAY_CONN_INFO(STRING) = "IX=0 AD=10.1.40.68 PN=53482
PAD=10.1.40.68 PPN=53482 LOC=1280x1024 <at> 0,0 MTU=1500"
#_SUN_SUNRAY_CONN_INFO(STRING) = "IX=0 AD= PN=-1 PAD= PPN=-1
LOC=1280x1024 <at> 0,0 MTU=1500"
#_SUN_SUNRAY_CONN_INFO:  no such atom on any window.
if( exists $ENV{SUN_SUNRAY_TOKEN} ) {
        my $xprop = `/usr/openwin/bin/xprop -root
_SUN_SUNRAY_CONN_INFO`;
        exit 0 if $xprop =~ /PN=-1 PAD= PPN=-1/; # Disconnected session
so no need for a screensaver
        exec '/opt/SUNWut/bin/utdetach' if( $ENV{SUN_SUNRAY_TOKEN} =~
(Continue reading)


Gmane