On Tue, 11 Nov 2003, Simon Bryan wrote:

> HI all,
> Is there anyway to make the following simple bash script run by clicking on an icon
> in the desktop? Even if the icon opens the terminal window would be OK.
> 
> 
> #!/bin/sh
> echo
> echo
> echo
> echo -n "Enter your username: "
> read -e username
> echo
> echo
> echo -n "Enter your password: "
> read -s password
> 
> [ -a /home/$username/O_drive ] || mkdir -p /home/$username/O_Drive
> sudo mount -t smbfs -o
> username=$username,password=$password,posix=0,uid=$1,gid=$1,umask=0077
> //10.192.0.14/homes /home/$username/O_Drive

I think I know what you're after, this depends greatly on the window 
manager chosen. I take it you want this script available to all users?
More exploration is needed but...
cd /usr/share/applications
cp <something>.desktop map_o_drive.desktop
vi map_o_drive.desktop

This puts the item on the menu... I think the desktop is created the first 
time the user logs in so doing a global alteration to that isn't so 
trivial. Of course with all the gnome experts here someone's going to 
prove me wrong (hey I hope so!).

 -- 
---<GRiP>---
Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist, 
Linux Guru, SLUG/AUUG/Linux Australia member, Sydney Flashmobber,
BMX rider, Walker, Raver & rave music lover, Big kid that refuses
to grow up. I'd make a good family pet, take me home today!
        Do people actually read these things?


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to