Hello everybody,

this thread dates back almost half a year, but I have finally found some time 
to work on MToolsFM. Available at the MToolsFM website is MToolsFM-1.9-4-pre1:

http://www.core-coutainville.org/MToolsFM/archive/SOURCES/MToolsFM-1.9-4-pre1.tar.gz

It adds a new command line option "--rhomedir" which will cd to the user's 
homedir upon startup and will restrict navigation to subdirectries of the 
home directory. I found this a little bit better than disabling the ".." 
thing altogether...

Please tell me what you think about it. Greetings,

Christian Ospelkaus

> > I needed a way to use floppys on terminals, however
> > letting the
> > users have a full blown file manager as MToolsFM was
> > not
> > a very good option. MToolsFM itself would have been
> > great
> > (no mounting hassles).
> >
> > So I figured I needed a way to restrict MToolsFM to
> > some subdirectory
> > (users homedir). Ideally this should be an
> > configuration file option
> > per user, but since I am not a C guru, I only did
> > this little hack:
> >
> > -------cut-----------
> > *** mtoolsfm.c.org      Mon Aug 27 08:45:25 2001
> > --- mtoolsfm.c  Fri Jan 11 19:43:04 2002
> > ***************
> > *** 954,963 ****
> > --- 954,964 ----
> >         if (debug)
> >           printf ("  filename: %s+\n", path);
> >         if ((GTK_CHECK_MENU_ITEM (showdots)->active
> >
> >              || !strcmp (position, "..") ||
> >
> > (*position != '.'))
> >             && strcmp (position, ".")
> > +           && strcmp (position, "..")
> >             && (!((pathlen == 1) && (!strcmp
> > (position, ".."))))) {
> >           current = malloc (sizeof (dentry));
> >           strcpy (current->name, entry->d_name);
> >           stat (path, &buf);
> >           if (S_ISDIR (buf.st_mode))
> > --------cut-------------
> >
> > This little patch makes MToolsFM not to display the
> > ".." entry in
> > filelist so it basically restricts MtoolsFM to the
> > directory it is
> > started in. It is not possible to change to upper
> > directory.
> >
> > The users keep their files in $HOME/doc so I made
> > this little
> > wrapper script:
> >
> > [root@nipitiri test]# cat /usr/bin/X11/mtoolsfm-ap
> > #!/bin/sh
> >
> > cd $HOME/doc
> > mtoolsfm-ap-bin
> >
> >
> > Maybe this patch will be usefull to someone.
> >
> > Andi Lõhmus
> > andi at nex dot ee
>
> _____________________________________________________________________
>
> > 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.openprojects.net
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Courrier : http://courrier.yahoo.fr

----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

_____________________________________________________________________
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.openprojects.net

Reply via email to