Re: [SOLUTION] panel site defaults



1) getting the default
a) create a user say 'testgui'
I do something like :

b) log in as testgui
c) configure as the default you want for your users
d)
DIR=skel_dir_for_users
cd ~testigu
find GNUstep .gnome* | cpio -pdmuv $DIR

2) installing a user say 'new_user'
a) get the default and install

cd $DIR
find GNUstep .gnome* | cpio -pdmuv ~new_user
cd ~new_user
U=new_user
find GNUstep .gnome* -type f | {
	while read f
	do
		# sed with explicit options
		sed -n -e "s_/testgui_/$U_" -e p $f >$f.tmp
		mv $f.tmp $f
	done
} 
# GNUstep is for windowmaker

good luck
JRC

Joachim Trinkwitz wrote:
> 
> Joseph Carter <knghtbrd debian org> writes:
> 
> > To make a long story very short, making it work and copying the default
> > panel setup to each new user has a problem in that the Applet_Config file
> > (in panel.d/default/) has some absolute paths in it - oops.  This too can
> > be worked around simply by replacing the home directory with #HOMEDIR# or
> > something and then performing sed magic as the file gets copied.  Not the
> > most elegant solution, but effective for the purpose.
> 
> For those of us which are not speaking sed scripting fluently and won't
> invent the wheel again: has someone done this before and is willing to
> deal his/her code with us?
> 
> Thanks,
> joachim
> 
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list

-- 
Nur der Kleingeist hält Ordnung, das Genie beherrscht das Chaos.
Seuls les petits esprits aiment l'ordre, le génie maitrîse le chaos.
(anonyme)




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