 Yeah, hello, my name is Samuel Nierbrod. I'm working for CIB and I'm presenting the LibreOffice safe mode. That's a new feature in the 5.3 release. And first of all, what is safe mode and why do we need it? You may say no safe mode from Windows. When you have a broken driver, you start the safe mode to fix things. It disabled some drivers and some other things or Thunderbird and Firefox have a safe mode which disables their add-ons and other stuff. And yeah, we had similar problems in LibreOffice. Users were reporting problems that we couldn't reproduce and often they were related to their user profile, containing some broken settings. There is an example of a bug report, writer crashes on startup because it fails to parse the registry modifications which contains the settings the user changed. Yeah, and for users it was the only solution often was to find the folder which contained the user profile and delete it. There was no real method to restore such a broken system. And so TDF published a tender last year to implement such a safe mode. And as CIB we did that. And yeah, the goal was to allow the user to identify and fix issues with the user profile. Yeah, how do I access the safe mode? There are three options. The LibreOffice has a, in the menu, a command in the help menu restarting safe mode. Then you have a start menu entry in Windows, LibreOffice safe mode and a command line option. That should be minus minus. This is auto correction made it into a long dash. Yeah, you can use that on Mac OS or Linux. Yeah, what are the features? It uses a temporary clean user profile and it also disables hardware acceleration like OpenGL and OpenCL temporarily because there were some users experiencing crashes due to OpenGL on startup. And when you can't start LibreOffice, you also cannot fix that only by manually editing the configuration files. So this is one thing we made easier with that. Yeah, and when you start it, you get that dialogue which has some options to restore and reset several things. I will show it later and I will show some use cases what you can do with that. And also it allows to create a CIB file from the user profile which helps if you want to send it to someone or upload it on the bug tracker for the developers to analyze it. Yeah, okay, the first use case LibreOffice doesn't start what should I do? And before we told users try deleting the folder containing user profile. Yeah, whereas that folder it differs on different operating systems. So they needed to find that and rename it or delete it. That means all their settings are gone, all their extensions are gone. And also their word book is gone, the words they added to their own word book and stuff like that. Another thing that could be broken is that it doesn't start because OpenGL has a crash. And in that case, the users need to put some setting in the Windows registry or edit the configuration manually. Yeah, and now we tell them start LibreOffice in safe mode with one of the methods I mentioned. And then you already see it will hopefully start up again, then it was an issue with the user profile. And then, yeah, you have some options to disable hardware acceleration or to reset certain parts of the user profile or the whole profile. Okay, another use case, I changed option X, and now LibreOffice doesn't work anymore or it works different than before. And before the solution was, yeah, delete your user profile. And now we can tell them go to the safe mode and restore the last configuration backup. Yeah, there is a backup functionality included. It is not yet enabled by default in 5.3, but you can enable it by setting some any options, I will explain that later. Hopefully it will be enabled for the next release, yeah? Yeah, there will be backups created when you change something. You can configure what will be included in that backup. I will explain that later. Okay, the next use case, I broke everything. I want to reset LibreOffice factory settings before the solution was delete your user profile with the same problem. Where is it? Now they can go to safe mode and select reset entire user profile. And the next use case, my extensions don't work or my extensions don't work anymore. Okay, right. Or they are breaking things. Before you could go to the extension manager and disable or remove them one by one. That's fine. Now you can disable or reset them with one click or even remove them, the user extensions at least. There are three types of extensions bundled, the extensions we deliver with LibreOffice. Then you can install them shared for all users. And for these two types, you can only disable them. And for your own extensions, which are only for the current user, you can remove them. Okay, another use case. I was requested to send my user profile to some bug tracker or some support system. Where do I find it? And before, we had a nice wiki page with instructions on Windows. It's an update LibreOffice for user. And Linux, it is in the home directory that config LibreOffice for user, et cetera. And now you can find that folder by going to the safe mode. There is an advanced section. There you can either click a button to show the user profile folder or directly create a zip file out of it. And yeah, do whatever you want with that zip file. Okay, that's the part of the configuration for the backups. There are various any properties. And the default values are what is given here. Default means in current master, hopefully 5.4. So secure user config means the backup is enabled. Yeah, false means it's disabled. It's clear. Then secure user config compress is whether it will be compressed or not. Number of copies. The next item is how many copies are kept? The default is two. And then there is an item secure user config mode. There are three numbers you can give zero, one, and two. Zero means it backups only the registry modifications. Yeah, like the changes you did to the settings. Then one is the default. It also backups auto correction, auto text, basic scripts, configurations, databases, registry scripts, templates, and the word book. Yeah, we excluded certain parts like the gallery because that might become too big. And two means the whole user profile, whatever is in there. Because extensions can also put content there, maybe you want to backup that too. Secure user config extensions is the feature that remembers the last state of extensions that worked. So if you install a new extension and a LibreOffice doesn't work afterwards, you can restore the last working state of the extensions, meaning that extension will be disabled at the next start. Okay, how to customize the default values? These values are defined in the installation directory, program soffice.ini or soffice.rc on Linux. I don't know what is in macOS. Then you can use the minus nth command line parameter to give each of these options a different value or a normal environment variable. Okay, now the demo. Okay, so I just start by customizing my toolbar and somehow I manage to remove all the icons there. Yeah. And now I have missing lots of icons from my toolbar. Then I can go to restart and save mode, restart. It's giving some Java warnings because Java isn't configured anymore. And then I get this dialogue. Yeah, I can restore the last known working configuration from the backup. Configure is, can disable our user extensions. I don't have an extension, so that's disabled or disable hardware acceleration. Extensions can de-install, uninstall our user extensions or reset the state of shared extensions or of bundled extensions. I mentioned all of that, what it means. Or I can reset to factory settings. There is an option reset settings and user interface modifications. That might be helpful for such a case as now. It resets toolbar customizations, menu bar customization and also everything you change in tools options. You might want to do that if a new release contains an updated menu bar or an updated toolbar. If you customize it before you won't get the update. So you can reset it here. Yeah, or in my case I could restore the toolbar as it was before. Right changes and restart. And there it is as it used to be. Okay, now once again in safe mode, I can use the start menu entry to show that. There it is, LibreOffice safe mode. Yeah, or no safe mode. Try again. Okay, we found the back. Okay, so there's the advanced section says if you experience problems that cannot be resolved by using the safe mode, you can get help. That leads to the LibreOffice site where you can report it back or whatever or has links to forums. Then there is show user profile, which opens the folder with the user profile. The folder safe mode contains the backed up user profile. Yeah, because this is the clean user profile now. And then there is create zip archive from user profile. And then you can you have it there. Yeah, that was the LibreOffice safe mode. Are there any questions? Yeah, because there is no Java configuration anymore. I might have something that uses Java. Yeah, probably I have something that requires Java. There's a spec screen that shows some lines of doing something with the extension. So probably a hot subject. Yeah, okay. Yeah, yeah. The big problem is your line backup is to add databases to the backup system. Yeah. Yeah, that's one reason why it is only enabled in master. We have some time frame until the 5.4 release to hopefully find those corner cases. Databases, I don't really know what it contains but it doesn't contain your base databases because you save them somewhere wherever you want. They are not by default saved in the user profile as far as I know. What happens in case the disk is full? Okay, my time is over. So I was wondering, normally when you edit the document and you make a mistake, you have an undo button and it has a nice label saying what the changes that you would like to revert. Dialogues you just showed for an average user I think look very scary and if it just had a label undo the removal of the icons, I think that would be more user friendly. I mean a user is quite panicky in a situation like this where he has to go to save work. So any type of scary dialogue might discomfort the more. Do you think it's feasible to have nice labels like with undo for what you are going to reset? Yeah, one could list the configuration options, they usually have labels. It won't be so nice like undo but maybe there is some room for improvement. Good idea. Okay, thank you.