[K12OSN] Me again :-) how do I globally remove icons from the desktop

Peter Scheie peter at scheie.homedns.org
Sat Mar 17 01:43:23 UTC 2007



Jim Kronebusch wrote:
>> #!/bin/bash
>>
>> # check for symlink called classroom in user's ~/Desktop/ directory to
>> # /home/classroom directory, and if it doesn't exist, create it.
>> # /home/classroom should have g+rws permissions, and all users should
>> # be members of the group, so that all students can write to
>> # /home/classroom.
>>
>> [ ! -L $HOME/Desktop/classroom ] && ln -s /home/classroom ${HOME}/Desktop/classroom
>> [ ! -L $HOME/classroom ] && ln -s /home/classroom ${HOME}/classroom
> 
> I created the file /etc/profile.d/check_desktop_links.sh. The file has 755 permissions
> and is owned by root.root.  Here is the text in the file:
> 
> #!/bin/bash
> 
> [ ! -L $HOME/Desktop/Drop ] && ln -s /home/Drop ${HOME}/Desktop/Drop
> [ ! -L $HOME/Desktop/Public ] && ln -s /home/Public ${HOME}/Desktop/Public
> 
> 
> I login and no links :-(
> 
> If I run ln -s /home/Drop ~/Desktop/Drop at the command line the link creates fine, same
> with the Public link.  Ideas?
> 
If you run /etc/profile.d/check_desktop_links.sh from a command line, 
are the links created?




More information about the K12OSN mailing list