dynamic vs static entries in user-config files

Andrius Kazimieras Kasparavicius <[email protected]> Fri, 17 Sep 2004 01:34:09 +0300
Newsgroups gmane.linux.lsb.discuss
Message-ID <[email protected]>
Hello, I do not know who is responsible for the problem of user level config
files with static home path(/home/andrius instead ~andrius) in a lot of
software. F.E. when starting openoffice.org with user andrius it creates
user-config files with entries like:

[Versions]
OpenOffice.org 1.1.2=3Dfile:///home/andrius/.openoffice/1.1.2

but if one day I want to rename this user to other, these configs will fail
for it. And if I have a lot of accounts and want to manipulate with them.
Also it's becomes difficult to make skel(templates) for adding new users by
old ones config. There could be generated even not only text-based configs,
then these entries replacement makes more difficult. There is need for $home
instead /home/andrius/ . And for all(most common) software. Like standart.

am I right or wrong, or should do anything in other way?

there is examples:

andrius@mergele:~$ find . -type f -exec grep -l /home/andrius {} /dev/null =
\;
=2E/.xsession-errors
=2E/.kde/share/config/session/akregator_117f0000010001095330035000000364900=
54_1
095342959_588830 ./.kde/share/config/kvircrc
=2E/.kde/share/config/amarokrc
=2E/.kde/share/config/komparerc
=2E/.kde/share/config/amarokrc332s5a.new
=2E/.kde/share/apps/kconf_update/update.log
=2E/.qt/qtrc
=2E/.mcop/trader-cache/cache-data-version
=2E/.xchat2/xchat.conf
=2E/.mozilla/firefox/default.197/prefs.js
=2E/.mozilla/firefox/default.197/secmod.db
=2E/.kvirc/config/kvi.frame.conf
=2E/.kvircrc
=2E/.openoffice/1.1.2/setup.log
=2E/.openoffice/1.1.2/user/psprint/pspfontcache
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Setup.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Common.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.UserProfile.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Linguistic.=
dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.VCL.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.ucb.Configuration.=
dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Substitutio=
n.da
t
 ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.TypeDetectio=
n.
dat ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Inet.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Security.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Addons.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Views.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.ucb.Store.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Commands.dat
=2E/.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.ProtocolHan=
dler
=2Edat ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Jobs.d=
at
 ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.UI.dat
 ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.Writer.dat
 ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.WriterWeb.dat
 ./.openoffice/1.1.2/user/registry/cache/org.openoffice.Office.SFX.dat
 ./.openoffice/1.1.2/user/registry/data/org/openoffice/Setup.xcu
=2E/.openoffice/1.1.2/instdb.ins
=2E/.sversionrc
=2E/.giFT/giftd.conf
grep: ./DEADJOE: Permission denied
=2E/.opera/opera6.ini
=2E/.opera/mail/index.ini
andrius@mergele:~$



=2D-
with best regards
Andrius Kazimieras Kasparavi=E8ius
GSM: +370 687 25630