Skip to content

xdg-desktop-portal-gtk: 100% cpu usage and no print-dialog shown #477826

@antoniocorbi

Description

@antoniocorbi

Nixpkgs version

  • Stable (25.11)

Describe the bug

Hi!
I'm using niri as my wayland compositor.
I've configured niri to use xdg-desktop-portal-gtk for printing like this: config.niri."org.freedesktop.portal.Print" = [ "gtk" ]; but trying the gnome portal the problem persists.

Trying to print from any application that uses xdk-desktop-portal-(gtk, gnome) to show a print dialog makes xdg-desktop-portal-gtk (in my case) use 100% cpu usage and the print dialog isn't shown.

The printer works ok from the command line using i.e. lpr.

The journalctl --user -u xdg-desktop-portal-gtk.service -f doesn't show any relevant information

Steps to reproduce

Try to print from any application like firefox, papers, geany, etc...

Expected behaviour

Show a print dialog and let the user print the document.

Screenshots

Image

Relevant log output

journalctl --user -u xdg-desktop-portal-gtk.service -f

ene 07 18:34:56 acb-nixos systemd[2211]: Starting Portal service (GTK/GNOME implementation)...
ene 07 18:34:56 acb-nixos systemd[2211]: Started Portal service (GTK/GNOME implementation).

Additional context

I don't know since this problem is happening as I don't usually print.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.3, NixOS, 25.11 (Xantusia), 25.11.20260105.3c9db02
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.32.4
  • channels(root): "nixos-24.05, nixpkgs-unstable"
  • nixpkgs: /nix/store/05zq22ry219543phf7q87d883kxl6ry7-source

Notify maintainers

@jtojnar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions