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

nixos/xdg: fails to lauch portals on niri wm #391489

Open
3 tasks done
pneg opened this issue Mar 20, 2025 · 2 comments
Open
3 tasks done

nixos/xdg: fails to lauch portals on niri wm #391489

pneg opened this issue Mar 20, 2025 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@pneg
Copy link

pneg commented Mar 20, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

xdg-desktop-portal-gtk fails whenever I log in with "cannot open display" or "Error reading events from display: Broken pipe." If I restart it manually it runs, but I have to restart xdg-desktop-portal-gnome too to get the filepicker, screensharing, etc. to function.

Steps to reproduce

  1. Add the following to configuration.nix:
{
  environment.systemPackages = with pkgs; [
    nautilus # needed for filepicker to function
  ];
  programs.niri.enable = true;
}
  1. Launch niri and check the status of xdg-desktop-portal-gtk

Expected behaviour

xdg-desktop-portal-gtk should launch successfully

Screenshots

No response

Relevant log output

Mar 20 01:56:48 pc .xdg-desktop-po[37491]: Error reading events from display: Broken pipe
Mar 20 01:56:48 pc systemd[1641]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Mar 20 01:56:48 pc systemd[1641]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Mar 20 01:56:48 pc systemd[1641]: xdg-desktop-portal-gtk.service: Consumed 4.076s CPU time, 10.6M memory peak, 7.5M memory swap pe>
Mar 20 01:56:55 pc systemd[1641]: Starting Portal service (GTK/GNOME implementation)...
Mar 20 01:56:55 pc .xdg-desktop-po[178587]: cannot open display: 
Mar 20 01:56:55 pc systemd[1641]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Mar 20 01:56:55 pc systemd[1641]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Mar 20 01:56:55 pc systemd[1641]: Failed to start Portal service (GTK/GNOME implementation).

Additional context

Similar issue: #386341

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.11.11-valve10, NixOS, 25.05 (Warbler), 25.05.20250315.c80f6a7
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • nixpkgs: /nix/store/alzxn3hjisc84hrlv44x6hni48crww26-source

Notify maintainers

@jtojnar
@sodiboo
@getchoo
@foo-dogsquared
@IogaMaster


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@pneg pneg added the 0.kind: bug Something is broken label Mar 20, 2025
@pneg
Copy link
Author

pneg commented Mar 20, 2025

For some reason 10 minutes later it starts fine:

Mar 20 02:05:59 pc systemd[1641]: Starting Portal service (GTK/GNOME implementation)...
Mar 20 02:05:59 pc systemd[1641]: Started Portal service (GTK/GNOME implementation).

@Brisingr05
Copy link

Are you starting niri using niri-session?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants