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

Mint 20 Mate slow after Login #56

Open
munzelthecat opened this issue Jan 20, 2023 · 9 comments
Open

Mint 20 Mate slow after Login #56

munzelthecat opened this issue Jan 20, 2023 · 9 comments

Comments

@munzelthecat
Copy link

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.

@clefebvre
Copy link
Member

Does this help?

systemctl --user stop xdg-desktop-portal{,-gtk}
systemctl --user disable xdg-desktop-portal{,-gtk}

@mtwebster
Copy link
Member

Can you paste/attach your ~/.xsession-errors?

@munzelthecat
Copy link
Author

munzelthecat commented Jan 27, 2023 via email

@munzelthecat
Copy link
Author

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

Do you have any flatpak apps installed? If so, which?

flatpak list

@munzelthecat
Copy link
Author

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

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

All right, thank you very much. Then I will also uninstall xdg-desktop-portal.

@bttrx
Copy link

bttrx commented Dec 23, 2023

$ sudo apt purge xdg-desktop-portal worked for me to on LM20.2M.

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

No branches or pull requests

4 participants