Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed "templates-all_2.2-1.deb" don't show up in Templete Manager as explained in Install-Guide. #16

Open
PranavBhattarai opened this issue Mar 15, 2020 · 7 comments

Comments

@PranavBhattarai
Copy link

Distro: Ubuntu 19.10
LO: Version: 6.4.1.2
I followed the installation guide to install all template using
sudo dpkg -i libreoffice-impress-templates-all_2.2-1.deb command, as u can see:

image

The only templates I see is the one which came by default, as u can see:
Screencast from 15-03-20 11_37_45 AM +0545

I think the directory which .deb is installing slides to, is the old one. Not the new one.

@dohliam
Copy link
Owner

dohliam commented Mar 15, 2020

Thanks very much for raising this issue! I think you're right that it's an issue with the location of the template files, and the deb package is overdue for an update in any case.

From a quick check, it appears that templates are currently stored in /usr/lib/libreoffice/share/template/common/presnt/. Can you confirm that this is where they are located on your system? Assuming it is, it should be fairly simple to rebuild the package.

@dohliam
Copy link
Owner

dohliam commented Mar 15, 2020

Just realized/remembered that this may be dependent on your system's locale settings -- so the common part of the directory path could be something else.

I'm not sure if there is an easy way to customize the install destination based on the OS default locale (though if there are any Debian packaging gurus reading this please feel free to chime in!). So the easiest thing to do for now might be to just download the regular release zip file with all the templates and manually copy it to your Libreoffice templates directory. In other words, something like this: sudo cp *.otp /usr/lib/libreoffice/share/template/[locale]/presnt, with [locale] replaced by your locale.

@PranavBhattarai
Copy link
Author

@dohliam yes the templates are installed in u mentioned:
Screenshot from 2020-03-15 18-28-35

Note: I have installed LibreOffice using Flatpak. Does this change the installation directory of where the LibreOffice resides? Then I might need to move all the templates to that directory.

@dohliam
Copy link
Owner

dohliam commented Mar 15, 2020

@PranavBhattarai that's a possibility, though not sure how Flatpak handles directory structure. It seems from your screenshot that you have both the default LibreOffice templates (for example, Alizarin.otp and Blue_Curve.otp) and the additional templates (alizarin.otp and blue_curve.otp -- note the lowercase filenames). So they seem to be in the right place, unless you have more than one installation of LibreOffice (perhaps a default one that came with your system as well as the one you installed with Flatpak?) at the same time. The only other thing I can think of would be to try closing and restarting LibreOffice and see if the templates appear after that.

@PranavBhattarai
Copy link
Author

PranavBhattarai commented Mar 16, 2020

@dohliam
No, I don't have two LibreOffice installed. I uninstall LO installed by both apt & snap repo before I install LO from Flatpak.
No, matter how much I restart LO, it won't show me the installed templates.

I didn't see that coming. The existence of duplicates files is really started bothering me.
I think I should create a GitHub issue in Flapak repo linking this issue.

@dohliam
Copy link
Owner

dohliam commented Mar 16, 2020

@PranavBhattarai The duplicate files are not actually the fault of Flatpak. They are in fact the same templates, but since they are included by default in LibreOffice (with uppercase filenames) and also this repo (with lowercase filenames), they appear twice. The duplicates can be fairly easily removed though from the LO template interface. The question now is just why LO is not picking up on the existence of the templates in its own template folder.

@MyPyDavid
Copy link

I had this same issue at first. However, after clicking the 'Refresh' button in the settings (bottom left) of the Templates manager window, all of the templates appeared.
I did the Graphical Install, all the files were also installed to /usr/lib/libreoffice/share/template/common/presnt/ and the default files are also there.
Thanks for this package! @dohliam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants