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

Jim Kronebusch jim at winonacotter.org
Fri Mar 16 21:31:18 UTC 2007

> #!/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:


[ ! -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?

This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.

More information about the K12OSN mailing list