M Hoeller wrote:

 > the subject says it almost completely. I am on openSUSE 10.2 and the 
 > latest ltsp 4.2 version. (well /ect/version says update 3, but I 
 > guess this is a bug and the update verison is 4...) 
I am on Gentoo, ltsp-4.2-r1. /ect/version says update 3 but the ebuild
downloaded the latest versions from
http://ltsp.mirrors.tds.net/pub/ltsp/ltsp-4.2/ so it should be the
latest ltsp 4.2 version.

 > Anyway, I have installed local dev support. The setup passed all 
 > Troubelshooing tests successfully (Step 1 to 12). But when I plugin a 
 > usbstick I do not get an icon.
Same here.

 > When I fire off the eventhandler manually (Step 11) I get an icon.. 
Me too. And with the messages in ~/.lbussd.out
--------------- cite ---------------
fifo opened, fd: 4
Sending:  Register
Sending:  EnumerateDevices
Starting the loop...
listening on: 3
event: [AddBlockDevice|58|19|Removable_Device_931_Mb|0|931|Removable Device 
(931Mb)], messagetpe
: [AddBlockDevice]
Saved:
   device_id: 19
   sharename: Removable_Device_931_Mb
  removeable: 0
        size: 931
        desc: Removable Device (931Mb)
        type: block
About to run /usr/sbin/lbus_event_handler.sh
--------------- end ---------------
I even got the usb stick mounted/umounted by calling
  /usr/sbin/lbus_event_handler.sh add block Removable_Device_931_Mb 931 
"Removable Device (931Mb)"
  /usr/sbin/lbus_event_handler.sh remove block Removable_Device_931_Mb 931 
"Removable Device (931Mb)"
in a shell.

 > So this lets me assume that the actual fire of the event is either not 
 > happening or not deteced.
In my case the event was fired but /usr/sbin/lbussd did not "really"
call the lbus_event_handler.sh script. I could narrow the problem down
to the line
   my @pwflds   = getpwuid( $> );
in /usr/sbin/lbussd. With this call of getpwuid() all the
system()-calls in libussd do nothing. Don't ask me why?!
But with this patch libussd now works:
diff lbussd.ltsorig lbussd
30a31
> use English;
38,41c39,41
< my @pwflds   = getpwuid( $> );
< my $uid      = $pwflds[2];
< my $username = $pwflds[0];
< my $homedir  = $pwflds[7];
---
> my $uid      = $EUID;
> my $username = $ENV{USER};
> my $homedir  = $ENV{HOME};

Horst

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to