#1060199 failure when being started on the console

Package:
xdg-desktop-portal-gtk
Source:
xdg-desktop-portal-gtk
Description:
GTK+/GNOME portal backend for xdg-desktop-portal
Submitter:
Michael Biebl
Date:
2024-01-07 12:30:03 UTC
Severity:
normal
#1060199#5
Date:
2024-01-07 12:13:56 UTC
From:
To:
When logging in on the console (i.e. without a graphical display),
systemctl --user will report that it is in degraded state.

The issue is that xdg-desktop-portal-gtk.service is started bug fails
with
Dez 30 23:44:39 pluto xdg-desktop-por[2829]: Error reading events from display: Datenübergabe unterbrochen (broken pipe)
Dez 30 23:44:39 pluto systemd[1910]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Dez 30 23:44:39 pluto systemd[1910]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.


I wonder, whether those xdg-* services should be tied to a graphical
session.

See man systemd.special → graphical-session.target

#1060199#10
Date:
2024-01-07 12:22:33 UTC
From:
To:
Am 07.01.24 um 13:13 schrieb Michael Biebl:

Hm, it appears those other xdg-desktop-* services do already use
graphical-session.target and xdg-desktop-portal-gtk.service is
apparently supposed to be D-Bus activated.

I wonder what triggers the start of this service on the console though.

#1060199#15
Date:
2024-01-07 12:26:45 UTC
From:
To:
Am 07.01.24 um 13:22 schrieb Michael Biebl:

systemctl --user status

systemctl --user --failed

Is maybe wireplumber/pipewire triggering the
xdg-desktop-portal-gtk.service start?