========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://forums.gentoo.org/viewtopic-t-87262.html"
linktext was:"http://forums.gentoo.org/viewtopic-t-87262.html"
====================================
and with a little modification, it works wonderfully in antix. If you would like to use idesk to create icons on your desktop for your mountable devices, then follow these instructions.
1. Create the script to mount/unmount devices. Copy and paste into leafpad or geany. Save it as something like ideskmount.sh
Code: Select all
#!/bin/bash
#Check to see if dev is mounted, if not, mount it
#and open it, if so just open it
DEV=$1
isMntd=`cat /etc/mtab | grep $DEV | wc -l | sed 's/ //g'`
#If it is mounted, open it!
if ["$isMntd" -eq"1" ]; then
mntPnt=`cat /etc/mtab | grep $DEV | cut -d' ' -f2`
rox $mntPnt
else
mount $DEV
mntPnt=`cat /etc/mtab | grep $DEV | cut -d' ' -f2`
rox $mntPnt
fi
umount $mntPnt
Code: Select all
chmod a+x /path/ideskmount.sh
Code: Select all
cp /path/ideskmount.sh /usr/local/bin/
Code: Select all
mkdir /home/your_name/.idesktop/
Code: Select all
table Icon
Caption: CD/DVD
ToolTip.Caption: Browse Device
Icon: /usr/share/icons/gTangish-2.0a1/32x32/devices/media-optical.png
Width: 32
Height: 32
X: 875
Y: 669
Command[0]: ideskmount.sh /media/cdrom
Command[1]: leafpad ~/.idesktop/cddvd.lnk
end
Note: To find other mountpoints for your .lnk files, just make sure the device is plugged in and find its mountpoint using rox; most are in /media/ or /mnt/. When you know the mountpoint for your device, edit this line
Code: Select all
ideskmount.sh /media/cdrom
Code: Select all
(sleep 2; idesk &) &
Note: Feel free to change"rox" to"pcmanfm" if that is what you use for a fm.
Here's a screenshot:
Enjoy.
john