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

GTK applications (including Firefox) are slow to start with GNOME 44 #146

Open
intgr opened this issue Jul 24, 2023 · 2 comments
Open

GTK applications (including Firefox) are slow to start with GNOME 44 #146

intgr opened this issue Jul 24, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@intgr
Copy link
Owner

intgr commented Jul 24, 2023

If you also experience this bug, please add a 👍 reaction.

With some recent-ish updates, GTK applications are quite slow to start up, waiting for 25+ seconds before opening any Windows appear.

Sorry, I haven't had time to finish investigating this. But it looks related to xdg-desktop-portal changes in GNOME version 44.

% G_MESSAGES_DEBUG=all gedit
[...]
(gedit:254958): Gtk-DEBUG: 20:29:55.622: Connecting to session manager
(gedit:254958): Gtk-DEBUG: 20:29:55.622: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(gedit:254958): Gtk-DEBUG: 20:29:55.623: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
[---- 25 s delay ----]
(gedit:254958): Gtk-DEBUG: 20:30:20.641: Failed to get an inhibit portal proxy: Error calling StartServiceByName for org.freedesktop.portal.Desktop: Timeout was reached

journal output:

systemd[251317]: Current graphical user session is inactive.
systemd[251317]: Dependency failed for Portal service (GNOME implementation).
systemd[251317]: xdg-desktop-portal-gnome.service: Job xdg-desktop-portal-gnome.service/start failed with result 'dependency'.
@intgr intgr added the bug Something isn't working label Jul 24, 2023
@intgr intgr self-assigned this Jul 24, 2023
@intgr intgr changed the title GTK applications (including Firefox) are slow to start GTK applications (including Firefox) are slow to start with GNOME 44 Jul 24, 2023
@intgr
Copy link
Owner Author

intgr commented Oct 8, 2023

One hack fix for this is commenting out the Requisite=graphical-session.target line in the xdg-desktop-portal-gnome.service unit.

But there has to be a better way to fix this...

For example, run as the ego target user:

mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/xdg-desktop-portal-gnome.service <<EOF
[Unit]
Description=Portal service (GNOME implementation)
After=graphical-session.target
# Requisite=graphical-session.target
PartOf=graphical-session.target

[Service]
Type=dbus
BusName=org.freedesktop.impl.portal.desktop.gnome
ExecStart=/usr/lib/xdg-desktop-portal-gnome
EOF
systemctl --user daemon-reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant