I’ve downloaded the nixos unstable branch of librewolf, but I’ve found that the wrapped(?) binary
(${package}/bin/.librewolf-wrapped) doesn’t seem to have codec support for h264 when I go into about:support.
I’ve seen this post (Install codecs for Firefox / Librewolf) which seems to be related, but I am calling the package through home manager, which looks like it just adds it to home packages, that said, it could possibly mess something up with me using the different executable?
let
librewolf = pkgs-unstable.librewolf;
in
let
librewolf_executable = "${librewolf}/bin/.librewolf-wrapped";
in
{
programs.bash = {
shellAliases = {
librewolf = librewolf_executable;
};
sessionVariables = {
BROWSER = librewolf_executable;
};
};
programs.librewolf =
{
enable = true;
package = librewolf;
};
settings={
"widget.use-xdg-desktop-portal.file-picker" = 1;
"widget.use-xdg-desktop-portal.mime-handler" = 1;
};
};
Weirdly enough though, the unwrapped(?) binary (${package}/bin/librewolf) seems to have the codec support (from checking about:support after opening in safe mode, and also can play youtube livestreams and such), but it crashes on startup unless I open it in safe mode with the log below.
/nix/store/v3cvm7yqg2rb95k54m45hkd2vkvdr5x2-librewolf-129.0.1-1/bin/librewolf
[173778, Main Thread] WARNING: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop: 'glib warning', file /build/firefox-129.0.1/toolkit/xre/nsSigHandlers.cpp:187
(librewolf:173778): Gdk-WARNING **: 14:05:46.634: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
Segmentation fault (core dumped)
The window manager I’m currently using is hyprland, with the package from the nixos-23.11 branch of nixpkgs.
Is there any way I could either enable h264 support or have the other binary not crash?