Open Office Dfault File Saving formats

john lists.john at gmail.com
Mon Mar 31 16:31:06 BST 2008


Hi Anthony,

If your looking to force the change for all users you could use a
script called from /etc/profile at login. I've pasted mine below, it
may be overkill but I've used it for a year or so and its worked well
for me. It seems like the files below are the ones that matter (at
least for what I am doing) :

/usr/local/lib/oodefaults/paths.xcu
/usr/local/lib/oodefaults/common.xcu
/usr/local/lib/oodefaults/setup.xcu


Of course test it before you use it in production.

HTH,

John

Here's the script:

#!/bin/sh
#
###OPEN OFFICE KLUDGES###########

#creates the directories as students log in  so that the
# following scripts always have a place to go,
# otherwise you have to wait until the user opens and closes OO once

sa=$HOME/.openoffice.org2/user/registry/data/org/openoffice/
sw=$sa/Office/
sy=$HOME/.openoffice.org2/
ou=$HOME/.openoffice.org2/user/
ood=/usr/local/lib/oodefaults
nb=/usr/local/lib/oodefaults/basic


# if the directory already exists don't do anything, however if it doesn't
# then make and populate them


if [ ! -e $sy ]

        then
                mkdir -p $sw

                #copies msformats from template file to users home directory

                cp -f $ood/Setup.xcu $sa
                #contains .doc and save to Desktop default action
                cp -f $ood/Common.xcu $sw
                cp -f $ood/Paths.xcu $sw

                chown -R $USER $sy
fi

# copy $HOME/.openoffice.org2/user/basic directory over
# from /usr/local/lib/oodefaults/basic

                cp -R $nb $ou
                chown -R $USER $sy

exit 0






On Mon, Mar 31, 2008 at 7:43 AM, Peter <peter at beetlebolt.com> wrote:
> /usr/lib/openoffice/share/registry/modules/org/openoffice/Setup/
>
>  This might also be useful:
>  http://www.oooforum.org/forum/viewtopic.phtml?t=27273
>  -peter
>
>
>
>  Anthony Luscre wrote:
>  > I have been looking all afternoon, but I can not find where the new user
>  > configuration OpenOffice setup.xcu values come from. specifically, I
>  > would like to change the default file filter (formats) to match MS
>  > Office 2000 formats.
>  >
>  > Thanks
>  > anthony
>  >
>
>
>
>
> --
>  edubuntu-users mailing list
>  edubuntu-users at lists.ubuntu.com
>  Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
>



More information about the edubuntu-users mailing list