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

Trouble running chromium #24

Open
crabdancing opened this issue Nov 15, 2023 · 1 comment · Fixed by nixpak/nixpak#90
Open

Trouble running chromium #24

crabdancing opened this issue Nov 15, 2023 · 1 comment · Fixed by nixpak/nixpak#90

Comments

@crabdancing
Copy link

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
Copy link
Member

The first part should be fixed by setting meta.mainProgram, taken care of via nixpak/nixpak#90.

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

Successfully merging a pull request may close this issue.

2 participants