Comment 3 for bug 744227

Revision history for this message
Attila Hammer (hammera) wrote : Re: [Bug 744227] Re: [Natty] If have preconfigured Orca settings with /etc/skel folder, 30accessibility script owerwrite preconfigured Orca settings for live session

Hy Luke,

Why invalid this bug for live user creation? I see this bug.
I attaching a proper setted absolute sure right user-settings.conf file
with I putted the /etc/skel folder when I generate a custom live CD build.
If all contents are copyed proper from /etc/skel folder to live user
home directory, why absolute different the created
.local/share/orca/user-settings.conf file with this attached file?
My attached orca settings file is for example the sound pitch is 3.0,
turned off some key echo settings, turned on tutorial messages, speak
child position function, speak object mnemonics function, but this
changes are dropped automaticaly with automatic created live session
user creation script or casper-bottom/30accessibility script.
Look following code part for scripts/casper-bottom/30accessibility file,
this part have the problem I think:
   if [ -x /root/usr/bin/orca ]; then
    mkdir -p /root/home/$USERNAME/.local/share/orca
    set_orca_config
/root/home/$USERNAME/.local/share/orca/user-settings.conf speech
    chroot /root chown -R $USERNAME.$USERNAME
/home/$USERNAME/.local/share/orca
   fi

So, following line simple owerwrite the preconfigured Orca settings for
live session user .local/share/orca folder if have orca configuration
file with /etc/skel folder without examine have already a created
user-settings.conf file with live user home directory/.local/share/orca
directory?
    set_orca_config
/root/home/$USERNAME/.local/share/orca/user-settings.conf speech

You are absolute true, if I manual creating a new user after live CD is
booted and login is happened with adduser blabla command, all thinks
right copyed for /etc/skel folder to new blabla named user home
directory. The problem happening only with live user automatic creation.
Please put an if case the required code parts for
casper-bottom/30accessibility script or another script if have already
for automatic created live user .local/share/orca directory an
user-settings.conf file, don't run the script the factory Orca
configuration setting file creation.

How can possible fix this problem for live user automatic creation?
Prewious Ubuntu releases since Hardy does'nt have this problem, this
problem beginning with Natty.
I use this way preconfiguring Orca with Hardy, Intrepid, Natty, Karmic,
Lucid, Maverick, all prewious releases this way works right (put orca
configuration file with /etc/skel folder the proper Orca folder with
custom generated live CD build).
Prewious releases live user automatic get proper the I want setted Orca
settings if I generated a custom build.

If this bug is inwalid, please tell me how can I disable this working
method to live user creation scripts not owerwrite already setted custom
Orca settings for automatic created live session user?

Attila