Description: I want to disable system file dialog and use the buildin UNO file dialog (UCB). For that I use an Common.xcu[1] file in my extension, but it has no effect with LibreOffice [1] https://github.com/prrvchr/gDriveOOo/blob/master/source/gDriveOOo/Common.xcu Steps to Reproduce: 1. Switch to use system file dialog: Tools -> Options -> LibreOffice -> Advanced -> Open Expert Configuration Search for: UseSystemFileDialog (Found under: org.openoffice.Office.Common -> Misc) Set it to true 2. If you do: file -> open, then the system file dialog opens. 2. Install the gDriveOOo[1] or oneDriveOOo[2] or dDriveOOo[3] extension of your choice 3. If you do: file -> open, then it is always the system file dialog that opens. [1] https://github.com/prrvchr/gDriveOOo/raw/master/source/gDriveOOo/dist/gDriveOOo.oxt [2] https://github.com/prrvchr/oneDriveOOo/raw/master/source/oneDriveOOo/dist/oneDriveOOo.oxt [3] https://github.com/prrvchr/dDriveOOo/raw/master/source/dDriveOOo/dist/dDriveOOo.oxt Actual Results: the system file dialog opens Expected Results: the buildin UNO file dialog (UCB) opens Reproducible: Always User Profile Reset: No Additional Info: I have another problem with OpenOffice but I manage to modify this setting with the Commun.xcu file.
I took a look at this, and the problem is that you have tested it on a pre-exising install, with an existing instdir/user/registrymodifications.xcu file - which contains a value for this variable. A little advertised detail of LO is that lots of configuration defaults are written to this at the first start of LO, or the first opening+closing of a config dialog that contains these settings. The contents of this file take precedence over factory defaults and admin level customizations. This is explained in detail in these talk slides: http://www.linux-kongress.org/2010/slides/ooo_netzwerk-effenberger.pdf http://www.linuxtag.org/2012/fileadmin/www.linuxtag.org/slides/Thorsten%20Behrens%20-%20LibreOffice%20configuration%20management%20-%20Tools_%20approaches%20and%20best%20practices.p331.pdf http://libreoffice.hu/wp-content/uploads/2014/02/Andras_Timar_LibO_Central_Config_Management-1.pdf Try to close LO and rename your registrymodifications.xcu file - the next start will take the value from your extension. This worked for me, showing that the config snippet is correct. If you also want this to work for all users of your extension, you can try locking it down like this: <prop oor:name="UseSystemFileDialog" oor:finalized="true"> This will force your setting even if there is a pre-existing setting in the user level registrymodifications.xcu
Hi Gabor, I just tested with finalized="true" in my extensions and it works like charm. Thank you for all the users of the extensions this will save them having to change this by hand. I don't hide that I've been trying to get this to work for a long time, and I wouldn't have succeeded without your help. Thank again...