[Linux] Does anybody know if it’s LibreOffice intentionally putting my custom templates into $(xdg-user-dir TEMPLATES)/Styles?

Because if that is intentional I have a bit of a problem with it
LibreOffice seems to have created a file groupuinames.xml, which unintentionally shows up as a file template in my file manager
It would be a good idea to hide it (prefix with .)

I did not edit the Paths setting.
I am using NixOS wit GNOME
I created my templates via the templates menu.
I am using 7.5.4.1

Please, edit your question (= modify it, don’t use a comment) to give more details: exact Linux distro with chosen desktop, LO version.

In which directory have you found groupuinames.xml? How do you create and manage your templates? Have you customised Tools>Options>LibreOffice>Paths where you can define a specific directory for the templates?

I found that file with 0 Bytes and deleted it with no apparent consequences.

See Non-code extensions - Apache OpenOffice Wiki for an explanation of groupuinames.xml.

1 Like

On my system the file contains:

<?xml version="1.0" encoding="UTF-8"?>
<groupuinames:template-group-list xmlns:groupuinames="http://openoffice.org/2006/groupuinames"><groupuinames:template-group groupuinames:name="Styles" groupuinames:default-ui-name="Styles"/>
</groupuinames:template-group-list>

That means its empty!

How so?
Doesn’t it just point to the “Styles” folder inside of $(xdg-user-dir TEMPLATES)?
At least on debian it seems to do exactly that.

Edit: And those custom templates are stored there, e.g. in ~/Templates/Styles/

Only if you configured it so in Tools>Options, LibreOffice>Paths. Otherwise File>Templates>Manage Templates will store them in one of its factory-defined directories, usually one in ~/.config/libreoffice/4/user/…

Interesting. It shows me ~/.config/libreoffice/4/user/template AND ~/Templates, but I don’t think I ever configured it to use ~/Templates as well.

@Anselm_Schuler: In that case you can just go to the paths settings @ajlittoz mentioned above (Tools>Options, LibreOffice>Paths) and change it. After that, just move the folder from ~/Templates to your new path, e.g. ~/.config/libreoffice/4/user/template. Your file manager only displays ~/Templates as template files, so doing that should fix the problem.

Interesting, I didn’t configure anything in “Paths”. Perhaps my distro made a change?

Yes, Linux distributions set up one folder for all kinds of applications working with templates.