Hi Jason,

> On a somewhat related note, would it be possible to change the LTSP code
> so that the desktop icons can specify different filenames for the icons
> for the 3 types of local devices: floppies, CDs and USB mass storage
> devices?  If so, is that a hard change to make?

I did this to /usr/sbin/lbus_event_handler.sh
Here are just the changes. backup the original before editing. these
are kde icons

function create_icon {
  SHARENAME=$2
  if [ ${SHARENAME} = floppy ]; then
        ICON="/usr/share/icons/crystalsvg/32x32/devices/3floppy_unmount.png"
  elif [ ${SHARENAME} = cd-rom ]; then
        ICON="/usr/share/icons/crystalsvg/32x32/devices/cdrom_unmount.png"
  fi

  cat <<-EOF  >${HOME}/Desktop/${SHARENAME}.desktop
.....
.....


case "${ACTION}" in
  add)
      DEVTYPE=$2
      SHARENAME=$3
      MOUNTNAME=$SHARENAME
      if [ ${SHARENAME} = readwrite ]; then
                MOUNTNAME="floppy"
      elif [ ${SHARENAME} = readonly ]; then
                MOUNTNAME="cd-rom"
      fi
      SIZE=$4
      DESC=$5
      case "${DEVTYPE}" in
          block)  mkdir "${HOME}/${DRIVEDIR}/${MOUNTNAME}"
                  /usr/sbin/ltspfs ${WS}:/tmp/drives/${SHARENAME} \
                                   "${HOME}/${DRIVEDIR}/${MOUNTNAME}"
                  if [ -d ${HOME}/Desktop ]; then
                    create_icon "${DESC}" "${MOUNTNAME}" \
                                "${HOME}/${DRIVEDIR}/${MOUNTNAME}"
                  fi
                  ;;
       esac
       ;;

  remove)
      DEVTYPE=$2
      SHARENAME=$3
      MOUNTNAME=$SHARENAME
      if [ ${SHARENAME} = readwrite ]; then
                MOUNTNAME="floppy"
      elif [ ${SHARENAME} = readonly ]; then
                MOUNTNAME="cd-rom"
      fi
      SIZE=$4
      DESC=$5
      case "${DEVTYPE}" in
          block)  fusermount -u -z "${HOME}/${DRIVEDIR}/${MOUNTNAME}"
                  rmdir "${HOME}/${DRIVEDIR}/${MOUNTNAME}"
                  if [ -d ${HOME}/Desktop ]; then
                    rm -f "${HOME}/Desktop/${MOUNTNAME}.desktop"
                  fi
........

no doubt there are other ways to do this too.

Cheers.
Chris.




On 7/11/06, Jason Maas <[EMAIL PROTECTED]> wrote:
> Hi Sergey & others,
>
> On Mon, 10 Jul 2006, Sergey V. Bykov wrote:
>
> > Yes. I have same effect with LTSP-4.2-U2, Fedora Core 5 as server and
> > GNOME as environment.
> > If more than 1 terminal in network, than fancy icons "floppy (2), floppy
> > (3), floppy (4) and so on" appear on desktop.
> > And second problem - if insert some cdrom than not only icon appear on
> > desktop but folder with name of volume appears too.
>
> Good news!  I did some Googling and found a Nautilus setting which seems
> to make the "floppy & CD icons for everyone!" problem go away.  Use the
> GNOME Configuration Editor (gconf-editor) to change the "apps -> nautilus
> -> desktop -> volumes visible" setting to Off and then it doesn't show the
> fancy floppy and CD icons.  Everyone using Nautilus would need to make
> that change.
>
> Then each user only sees the icons that look like folders, and only for
> their own local devices.
>
> On a somewhat related note, would it be possible to change the LTSP code
> so that the desktop icons can specify different filenames for the icons
> for the 3 types of local devices: floppies, CDs and USB mass storage
> devices?  If so, is that a hard change to make?
>
> Jason
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _____________________________________________________________________
> 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
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
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