Nixos libreoffice impress slide transition sounds problem

slide transition > modify transition > sound > other sound…

I select the sound file but it is not added. works fine in arch for example. works in the flatpak but that sort of defeats the object us using nixos I think.

the sound file plays - it is not a codec problem.

the existing sounds are in /nix/store/lnz8430mysp3rh2d0bmdzpzzvslisgsl-libreoffice-26.2.1.2/lib/libreoffice/share/gallery/sounds but I can’t add to this because it is read only.

I tried putting it in /home/myname/.config/libreoffice/4/user/gallery but this hasn’t helped either.

hmmm… I can at least confirm that it also doesn’t work for me, but I don’t really ever have cause to use this functionality. I haven’t tried older versions of LibreOffice to confirm whether or not this used to work.

I can insert an audio file into the slide even though trying to set it as a transition doesn’t work. Strange.

On Arch, does it actually write the sound file somewhere instead of just into the slide presentation? That seems like a weird design pattern for LibreOffice to have adopted.

the odp file is an archive. adding a sound file should add the file within the archive into a directory called Media. That is what it does in arch (and kubuntu) but not in nixos. It doesn’t even create the directory Media. I did try manually adding the directory and the file within it but still could not add it into the slide.

I have reproduced this error with the logs showing warn:legacy.tools:198465:198465:sd/source/ui/animations/SlideTransitionPane.cxx:747: Adding sound to gallery failed.

After reviewing strace logs I have solved it by making the sg30* files in $XDG_CONFIG_HOME/libreoffice/4/user/gallery user writeable.

I recommend trying this to see if it fixes the issue.


This wiki entry documents how LibreOffice stores gallery files.

All graphical objects and sounds which are present in the Gallery can be located anywhere on your hard disk, or a network system, or an external disk, or an USB key. If you add objects to the Gallery, corresponding files won’t be moved nor copied: only the location of each new object will be added as a reference.

There is a longstanding bug in LibreOffice concerning the embedding of sounds when inserted as slide transition sounds. This is reported to have been fixed in version 26.2.2, but on unstable and stable NixOS the libreoffice package is currently pinned to version 25.8.5.2 and libreoffice-fresh is pinned to version 26.2.1.2. This will likely be why this works on other distributions and not on NixOS.

If you are using Darwin, libreoffice-bin is at version 26.2.4 in NixOS unstable.

Hi @magicquark . Thank you for looking into this! It partially fixes the issue by allowing the addition of the sound file. However, it doesn’t place it within the archive as it does in arch/ubuntu. I am creating these files for use elsewhere so presumably the sound file would need to be available as a separarate file?

I can confirm that I am using the latest fresh version in arch. I have no idea what Darwin is!

It is the underlying operating system that Apple uses for macOS (and other products).

I am getting an education today @magicquark ! Thanks again for your help. Hopefully not too long before the ‘fresh’ becomes freshened up!!

1 Like

Hmm, it looks like the old naming schemas are abandoned, so Still/Fresh split for official releases is no longer there? (but still we have upstream/collabora split)

libreoffice: 26.2.1.2, 25.8.5.2 -> 26.2.5.2 by 7c6f434c · Pull Request #551328 · NixOS/nixpkgs · GitHub might fix this.

Yes, I believe that the terminology used now is latest and previous, at least that is what the wiki was updated to say.

There are two versions available: the latest release for technology enthusiasts, early adopters and power users, and the previous release - with fewer features but tested for longer - for corporate implementations and more cautious users.

The graphic shown on the wiki page implies overlapping releases, but this is not (always) the case. Version 25.8 (previous) went EOL in June, Version 26.2 (latest) is currently available and Version 26.8 (future) is not due for release until the end of August.

So come the end of August, there should be two supported versions available, 26.2 and 26.8, which will be the case until the end of November when 26.2 reaches EOL.

Presently, the official download page offers versions 26.2.5 and 26.8.0.2 RC for download with a note that the latter is a pre-release version.

I have seen that some other package managers have previous=latest when only one supported version exists. I have also seen discussions suggesting that others will ship only a single version at any one time instead.

1 Like

Auto-updating definitely gets messy if the number of versions changes, and sometimes we are somewhat behind anyway (and also we have tests that work upstream but we don’t know how to make non-failing…)

I guess single latest stable makes sense, given the non-unlimited amount the attention I and others who send PRs pay to LibreOffice fixing in practice. (This is what I am doing in the linked PR)

Although if someone wants to be co-maintainer and keep closer track of releases, I will happily merge that.

Thanks for looking into Wiki, I was just exploring downloads and their Discourse and missed that.

1 Like

Thank you for your help with this

Would anyone here comment be interested in any kind of second-opinion testing / ideally reviewing the linked PR? I am considering whether I want to blindly self-merge this, but of course it is better if someone looks at it.

I am a committer and the only maintainer, so it’s just about «enough changes that I could get into tunnel vision and make an obviously stupid thing», I will self-merge after a thorough non-org-member review just fine. (Even if it is here and not on GH, too)

Hi

Sorry but I decided to go back to Arch as I needed that feature for my work. I am no longer using NixOS.

Thanks

Jonathan

1 Like