nixpak / pkgs

NixPak Packages [CI: https://hercules-ci.com/github/nixpak/pkgs]
12 stars 4 forks source link

Trouble running chromium #24

Open crabdancing opened 1 year ago

crabdancing commented 1 year ago

If I do nix run github:nixpak/pkgs#chromium, I get:

error: unable to execute '/nix/store/73f9gvw3bpakhkp7fnd0ya3mqg1ql90j-nixpak-ungoogled-chromium-118.0.5993.117/bin/nixpak-ungoogled-chromium': No such file or directory

This reads to me like the default binary is improperly set, so I try looking in the package directory and running things directly:

✨ ❯ /nix/store/73f9gvw3bpakhkp7fnd0ya3mqg1ql90j-nixpak-ungoogled-chromium-118.0.5993.117/bin/chromium
[2:21:1115/010511.662228:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Authorization required, but no authorization protocol specified

[2:2:1115/010511.664224:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
[2:2:1115/010511.664228:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
                                                                                                                        ❌1 2023-11-14 (Nov, Tue) 18:05:26
✨ ❯ /nix/store/73f9gvw3bpakhkp7fnd0ya3mqg1ql90j-nixpak-ungoogled-chromium-118.0.5993.117/bin/chromium-browser
[2:20:1115/010526.758875:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Authorization required, but no authorization protocol specified

[2:2:1115/010526.761197:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
[2:2:1115/010526.761203:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.

I believe I also got this back when I had nixpak/pkgs integrated into my system flake for testing -- which is weird, because the same method previously worked.

max-privatevoid commented 2 months ago

The first part should be fixed by setting meta.mainProgram, taken care of via https://github.com/nixpak/nixpak/pull/90.