How to get Vivaldi to work

I’ve installed Vivaldi on Nixos but it won’t start. This is what I get:

[ian@nixos:~]$ vivaldi
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

[0409/165247.886706:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0409/165247.887392:ERROR:process_memory_range.cc(75)] read out of range
Aborted (core dumped)

[ian@nixos:~]$ 

What do I have to do to get it to work?

Thanks,

Bump. Anyone have any ideas about this problem? Have I done something wrong?

:frowning:

Seems like the Vivaldi package has some issues related to the transition to qt6. There’s a workaround on the wiki you could try: https://wiki.nixos.org/wiki/Vivaldi

2 Likes

(If the above doesnt solve it)

XCB refers to something with X11. What desktop are you on? If it hopefully has wayland support, you could try running Vivaldi with wayland?

https://wiki.archlinux.org/title/Wayland

It should default to that, but otherwise try

vivaldi --ozone-platform=wayland --enable-features=WebRTCPipeWireCapturer --enable-features=WaylandWindowDecorations

I used to use vivaldi on nixOS before switching to zen browser so i feel your pain, the vivaldi nixpkg is plagued with issues so Id recommend using a flatpak for it, you can even install the flatpak declaritively using GitHub - gmodena/nix-flatpak: Install flatpaks declaratively

@mogplus88 , @ruukes How about

  environment.systemPackages = with pkgs; [
    # beeper
    #Vivaldi
    (vivaldi.override {
      proprietaryCodecs = true;
      enableWidevine = true;
      # isSnapshot = true;
      # kerberosSupport = true;
      # ];
    })
  ];

That worked for me. Thanks!

1 Like

Thanks to all for the responses, much appreciated.

@dsparby 's recommendation worked for me.

@BoredSquirrel I’m using kde plasma6. I tried the command you recommended but it failed with qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

Thanks again everybody.

:wink:

I had problems with Vivaldi on NixOS 24.11, but on 25.05 it works for me without needing any workarounds. I’m also using kde plasma6.

Vivaldi stopped working for me on 24.11 less than a day after I wrote that!

Hey I know you from the Fedora Forum!

How have you installed KDE? Please show the config.

The package you miss may be kdePackages.qtwayland. You can try adding that to your environment.systemPackages.

Note that all KDE packages should have the kdePackages group, not the libsForQt5 ! Those ones are outdated and cause all sorts of issues.

It may be that your plasma is configured with these outdated packages, as I would assume qtwayland were installed.