[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] bug in remove-icons-from-users-desktops script in K12 ver. 6



thanks :-)

(my mistake, oups :-( )


On 3/6/07, Petre Scheie <petre maltzen net> wrote:
It appears there is a bug in the /usr/sbin/remove-icons-from-users-desktops script in
K12LTSP version 6.  After the line

DEST="`basename \"$FILE\"`"

the rm commands should point to $DEST, which is the filename with the path stripped
away.  However, the rm commands still reference $FILE, which is something like
/root/Desktop/Icon.desktop, where Icon is the name you gave to the icon.  But since
$FILE still contains the full path, in this case relative to root's home directory, the
rm commands won't work because they'll try to delete /root/Desktop/Icon.desktop from
each users ~/Desktop directory.  Changing the rm commands to use $DEST instead of $FILE
fixes this.

Petre

_______________________________________________
K12OSN mailing list
K12OSN redhat com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]