What I'd suggest is actually using a launcher to do this instead.
IIRC you should be able to use a .desktop file (I'm pretty sure gnome
calls it a launcher) with the executable set to '/bin/cp -f
%F /home/Dropbox'. This should be tested with file names that have
spaces in them as I don't remember if gnome escapes them or not. You
can then put this launcher on each student's desktop, or, with a little
more work, in a menu. 

The students would then drag the homework they want to check in
(single or multiple files) on to the check-in launcher and those file
names get passed to cp. More info about this can be found here:
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

You could also call a custom script instead of cp that does whatever
you want (e.g.: send an alert to a teacher when a file is checked in,
or use xdialog to inform the student that the files were
checked in, or whatever). Also realize that if you have special
permissions set up there could be problems like overwriting files or
not being able to copy files, etc. But I assume you already have this
taken into account.

If this doesn't get you moving in the right direction please say so
and I'll track down a system with gnome on it to give you more exact
info.

On Mon, 18 May 2009 17:02:09 -0500
"John Hansen" <[email protected]> wrote:

> Hi,
> 
> I'm running Edubuntu 8.04 with LTSP. In /home, I have a "Drop" folder
> (/home/Drop) that students have write only privileges to for dropping
> in assignments for teachers to grade from the thin clients. Problem
> is, when students transfer their projects into the Drop folder, the
> system does a file move instead of a file copy. This moves the file
> from their directory which is also in /home, leaving the student
> without a copy or backup.
> 
> What do I need to change so that when a file is transferred from a
> students home directory (/home/student), to the Drop folder
> (/home/Drop) a copy is transferred and not just moved.
> 
> Thanks,
> 
> John
> 
> -----------
> John Hansen
> Director of IT
> Cotter Schools
> 1115 W. Broadway
> Winona, MN 55987
> (507) 453-5000 ext. 5199
> [email protected]
> 
> 

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_____________________________________________________________________
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