[K12OSN] Push Icon to desktop problem

Liam Marshall lsrpm-1 at shaw.ca
Tue Mar 15 05:10:32 UTC 2005


Thanks, will try this tomorrow


-----Original Message-----
From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf
Of Dan Young
Sent: Monday, March 14, 2005 11:00 PM
To: Support list for opensource software in schools.
Subject: RE: [K12OSN] Push Icon to desktop problem

On Mon, 2005-03-14 at 22:46 -0600, Liam Marshall wrote:
> -----Original Message-----
> From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On
Behalf
> Of Dan Young
> On Mon, 2005-03-14 at 21:41 -0600, Liam Marshall wrote:
> 
> >      1. A copy of the original file for Push Icons to desktop, from
> >         usr/sbin to get it back to original condition.  I am afraid I
> >         messed mine up and didn't save a copy of the original
> 
> # rpm -Uvh --force
>
http://k12linux.mesd.k12.or.us/yum/fc3/RPMS/k12ltsp/root-desktop-urls-0.1-k1
> 2ltsp.0.4.2.noarch.rpm
> 
> Is the above terminal line command replacing just the messed up file, or
all
> items on root's desktop as well?

It's everything in the root-desktop-urls rpm, which would be:
/root/Desktop
/root/Desktop/Documentation
/root/Desktop/Documentation/Fedora.desktop
/root/Desktop/Documentation/Gnome Help.desktop
/root/Desktop/Documentation/K12LTSP.desktop
/root/Desktop/Documentation/LTSP.desktop
/root/Desktop/Install additional software
/root/Desktop/Install additional software/Get Acrobat
Reader/root/Desktop/Install additional software/Get Flash
/root/Desktop/Install additional software/Get Fonts
/root/Desktop/Install additional software/Get Java
/root/Desktop/Install additional software/Get RealPlayer
/root/Desktop/Install additional software/Get Webmin
/root/Desktop/push_icons.desktop
/usr/sbin
/usr/sbin/get.acroread
/usr/sbin/get.flash
/usr/sbin/get.java
/usr/sbin/get.msttcorefonts
/usr/sbin/get.webmin
/usr/sbin/push-icons-to-users-desktops    <---- this is what you really
need, I think
/usr/share/msttcorefonts/msttcorefonts-1.3-4.spec

> >      1. and I would appreciate a way/script to remove an icon/link
> >         from desktops globally, like Push Icon.. Now does.  I really
> >         need to get the kiddie programs off the older kid's desktops,
> >         not to mention the staff members.  I shudder to think of
> >         manually deleting it from each Desktop folder
> 
> # for each in `getent passwd | cut -d ':' -f6`; do ls -D \
> > $each/Desktop/foo.desktop; done
> 
> Replace foo.desktop w/ the .desktop item for your icon, make sure it
> lists the right stuff, then replace "ls" w/ "rm -f".
> 
> this removes the extra stuff I accidently added to everyone, right?

Yeah, it should.

> So how do I push an icon/link to just the users under say,
> /home/kindergarten1/user1,,,user2   etc?

My bash-fu is weak, somebody else? The bottom line is that you could
modify /usr/sbin/push-icons-to-users-desktops to do this. You'd need to
generate the list of users and their home directories and feed it to the
script (working on a copy of the original ;-) ). The magic happens on
line 41.

-- 
Dan Young <dan_young at parkrose.k12.or.us>
Parkrose School District

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




More information about the K12OSN mailing list