You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xdg-desktop-portal.service causes a long wait after login (in my case about 25 sec) until the desktop and its icons appear.
systemctl --user status xdg-desktop-portal.service generates the following error message:xdg-desktop-por[1464]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
The effect can be reproduced by reinstalling Mint 20. The system startup is then still ok and after login the desktop appears quickly.
After running all offered updates and rebooting, the desktop appears heavily delayed.
My workaround was to uninstall the xdg-desktop-portal-gtk file using the
package manager. I installed it again and after reboot I get the
following /.xsession-errors:
dbus-update-activation-environment: setting
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting
XAUTHORITY=/home/dirk/.Xauthority
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting SHELL=/bin/bash
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting
XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
dbus-update-activation-environment: setting
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
dbus-update-activation-environment: setting LANGUAGE=de_DE:de
dbus-update-activation-environment: setting LC_ADDRESS=de_DE.UTF-8
dbus-update-activation-environment: setting LC_NAME=de_DE.UTF-8
dbus-update-activation-environment: setting DESKTOP_SESSION=mate
dbus-update-activation-environment: setting LC_MONETARY=de_DE.UTF-8
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting PWD=/home/dirk
dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=mate
dbus-update-activation-environment: setting LOGNAME=dirk
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
dbus-update-activation-environment: setting
XAUTHORITY=/home/dirk/.Xauthority
dbus-update-activation-environment: setting
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/dirk
dbus-update-activation-environment: setting GDM_LANG=de_DE
dbus-update-activation-environment: setting HOME=/home/dirk
dbus-update-activation-environment: setting IM_CONFIG_PHASE=1
dbus-update-activation-environment: setting LANG=de_DE.UTF-8
dbus-update-activation-environment: setting LC_PAPER=de_DE.UTF-8
dbus-update-activation-environment: setting XDG_CURRENT_DESKTOP=MATE
dbus-update-activation-environment: setting
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting LC_IDENTIFICATION=de_DE.UTF-8
dbus-update-activation-environment: setting USER=dirk
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting LC_TELEPHONE=de_DE.UTF-8
dbus-update-activation-environment: setting LC_MEASUREMENT=de_DE.UTF-8
dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000
dbus-update-activation-environment: setting LC_TIME=de_DE.UTF-8
dbus-update-activation-environment: setting
XDG_DATA_DIRS=/usr/share/mate:/home/dirk/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
dbus-update-activation-environment: setting
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
dbus-update-activation-environment: setting GDMSESSION=mate
dbus-update-activation-environment: setting
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting LC_NUMERIC=de_DE.UTF-8
dbus-update-activation-environment: setting
_=/usr/bin/dbus-update-activation-environment
mate-session[954]: WARNING: Unable to find provider '' of required
component 'dock'
/usr/bin/window-manager-launcher:15: PyGIDeprecationWarning: Using
positional arguments with the GObject constructor has been deprecated.
Please specify keyword(s) for "schema" or use a class specific
constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
settings = Gio.Settings("com.linuxmint.desktop")
/usr/bin/window-manager-launcher:59: PyGIDeprecationWarning: Using
positional arguments with the GObject constructor has been deprecated.
Please specify keyword(s) for "schema" or use a class specific
constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
settings = Gio.Settings("org.mate.Marco.general")
Warnung der Fensterverwaltung:Log level 128: unsetenv() is not
thread-safe and should not be used after threads are created
(caja:1234): Gtk-WARNING **: 16:24:24.045: Failed to register client:
GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to
register client
(mate-volume-control-status-icon:1272): libmatemixer-CRITICAL **:
16:24:24.283: mate_mixer_stream_control_get_mute: assertion
'MATE_MIXER_IS_STREAM_CONTROL (control)' failed
(mate-volume-control-status-icon:1272): libmatemixer-CRITICAL **:
16:24:24.325: mate_mixer_stream_control_get_mute: assertion
'MATE_MIXER_IS_STREAM_CONTROL (control)' failed
Caja-Share-Message: 16:24:49.906: Called "net usershare info" but it
failed: »net usershare« meldet folgenden Fehler 255: net usershare:
cannot open usershare directory /var/lib/samba/usershares. Error Datei
oder Verzeichnis nicht gefunden
Please ask your system administrator to enable user sharing.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Warnung der Fensterverwaltung:Buggy client sent a _NET_ACTIVE_WINDOW
message with a timestamp of 0 for 0x2400060 (mintMenu.p)
Warnung der Fensterverwaltung:meta_window_activate called by a pager
with a 0 timestamp; the pager needs to be fixed.
Warnung der Fensterverwaltung:Buggy client sent a _NET_ACTIVE_WINDOW
message with a timestamp of 0 for 0x1600007 (Legitimier)
Warnung der Fensterverwaltung:meta_window_activate called by a pager
with a 0 timestamp; the pager needs to be fixed.
Am 27.01.23 um 15:45 schrieb Michael Webster:
After ~$ systemctl --user stop xdg-desktop-portal{,-gtk} the service is stopped.
`~$ systemctl status --user xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static; >
Active: inactive (dead)
Jan 27 16:37:18 HP-PC systemd[902]: Starting Portal service...
Jan 27 16:37:44 HP-PC systemd[902]: Started Portal service.
Jan 27 16:38:14 HP-PC xdg-desktop-por[1323]: Failed to get application states: >
Jan 27 16:41:09 HP-PC systemd[902]: Stopping Portal service...
Jan 27 16:41:09 HP-PC systemd[902]: xdg-desktop-portal.service: Succeeded.
Jan 27 16:41:09 HP-PC systemd[902]: Stopped Portal service.
`
After ~$ systemctl --user disable xdg-desktop-portal{,-gtk} the service seems not to be disabled. The same message appears.
`~$ systemctl status --user xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static; >
Active: inactive (dead)
Jan 27 16:37:18 HP-PC systemd[902]: Starting Portal service...
Jan 27 16:37:44 HP-PC systemd[902]: Started Portal service.
Jan 27 16:38:14 HP-PC xdg-desktop-por[1323]: Failed to get application states: >
Jan 27 16:41:09 HP-PC systemd[902]: Stopping Portal service...
Jan 27 16:41:09 HP-PC systemd[902]: xdg-desktop-portal.service: Succeeded.
Jan 27 16:41:09 HP-PC systemd[902]: Stopped Portal service.
`
There's something that's using the xdg-portal interface to request background operation at startup. Do you have any additional programs starting when you login (often they provide a system tray icon as well). You could try disabling these things to maybe narrow down the culprit.
This background interface is provided by xdg-desktop-portal-gtk in Mint 20, though it is attempting to communicate with Gnome-Shell which obviously isn't running. Fortunately, in Mint 21/Ubuntu 22.04 the gtk package no longer does this (there's an xdg-desktop-portal-gnome package that provides this only when shell is running.
Since you're not using flatpaks anyhow you can uninstall both xdg-desktop-portal and xdg-desktop-portal-gtk, and this issue should go away.
Activity
clefebvre commentedon Jan 27, 2023
Does this help?
mtwebster commentedon Jan 27, 2023
Can you paste/attach your ~/.xsession-errors?
munzelthecat commentedon Jan 27, 2023
munzelthecat commentedon Jan 27, 2023
After
~$ systemctl --user stop xdg-desktop-portal{,-gtk}the service is stopped.`~$ systemctl status --user xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static; >
Active: inactive (dead)
Jan 27 16:37:18 HP-PC systemd[902]: Starting Portal service...
Jan 27 16:37:44 HP-PC systemd[902]: Started Portal service.
Jan 27 16:38:14 HP-PC xdg-desktop-por[1323]: Failed to get application states: >
Jan 27 16:41:09 HP-PC systemd[902]: Stopping Portal service...
Jan 27 16:41:09 HP-PC systemd[902]: xdg-desktop-portal.service: Succeeded.
Jan 27 16:41:09 HP-PC systemd[902]: Stopped Portal service.
`
After
~$ systemctl --user disable xdg-desktop-portal{,-gtk}the service seems not to be disabled. The same message appears.`~$ systemctl status --user xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static; >
Active: inactive (dead)
Jan 27 16:37:18 HP-PC systemd[902]: Starting Portal service...
Jan 27 16:37:44 HP-PC systemd[902]: Started Portal service.
Jan 27 16:38:14 HP-PC xdg-desktop-por[1323]: Failed to get application states: >
Jan 27 16:41:09 HP-PC systemd[902]: Stopping Portal service...
Jan 27 16:41:09 HP-PC systemd[902]: xdg-desktop-portal.service: Succeeded.
Jan 27 16:41:09 HP-PC systemd[902]: Stopped Portal service.
`
mtwebster commentedon Jan 28, 2023
Do you have any flatpak apps installed? If so, which?
munzelthecat commentedon Jan 29, 2023
No, I have not installed any Flatpak because they take up too much space and the principle does not convince me.
flatpak list
does not return any output.
mtwebster commentedon Jan 30, 2023
There's something that's using the xdg-portal interface to request background operation at startup. Do you have any additional programs starting when you login (often they provide a system tray icon as well). You could try disabling these things to maybe narrow down the culprit.
This background interface is provided by xdg-desktop-portal-gtk in Mint 20, though it is attempting to communicate with Gnome-Shell which obviously isn't running. Fortunately, in Mint 21/Ubuntu 22.04 the gtk package no longer does this (there's an xdg-desktop-portal-gnome package that provides this only when shell is running.
Since you're not using flatpaks anyhow you can uninstall both xdg-desktop-portal and xdg-desktop-portal-gtk, and this issue should go away.
flatpak/xdg-desktop-portal#336
https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.Background
munzelthecat commentedon Jan 30, 2023
All right, thank you very much. Then I will also uninstall xdg-desktop-portal.
bttrx commentedon Dec 23, 2023
$ sudo apt purge xdg-desktop-portalworked for me to on LM20.2M.