I just installed Kali Linux, I did apt update & apt upgrade, it worked fine, then I needed to add a keyboard layout (because the input sources was empty I uncommented my locale in the file /etc/locale.gen), then I restarted GDM to apply the changes: "systemctl restart gdm.service"en, after logging in back Gnome started to be buggy, it woudn’t open a terminal,files,settings etc. or it would take very long to open, the theme was shown as Light, though it was selected Dark.
What have you tried:
-
Reboot.
-
Restart xdg-desktop-portal Services
systemctl --user stop xdg-desktop-portal.service
systemctl --user stop xdg-desktop-portal-gnome.service
systemctl --user start xdg-desktop-portal.service
Job for xdg-desktop-portal.service failed because a timeout was exceeded.
See "systemctl --user status xdg-desktop-portal.service" and "journalctl --user -xeu xdg-desktop-portal.service" for details
journalctl
kali systemd[1643]: Starting xdg-desktop-portal.service - Portal service…
░░ Subject: A start job for unit UNIT has begun execution
░░ A start job for unit UNIT has begun execution.
░░
░░ The job identifier is 3977.
Feb 20 11:54:41 kali xdg-desktop-por[35133]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was >
Feb 20 11:55:06 kali xdg-desktop-por[35133]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout >
Feb 20 11:55:06 kali xdg-desktop-por[35133]: No skeleton to export
Feb 20 11:55:21 kali systemd[1643]: xdg-desktop-portal.service: start operation timed out. Terminating.
Feb 20 11:55:21 kali systemd[1643]: xdg-desktop-portal.service: Failed with result ‘timeout’.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░
░░ The unit UNIT has entered the ‘failed’ state with result ‘timeout’.
Feb 20 11:55:21 kali systemd[1643]: Failed to start xdg-desktop-portal.service - Portal service.
systemctl --user start xdg-desktop-portal-gnome.service
Job for xdg-desktop-portal.service failed because a timeout was exceeded.
Feb 20 10:16:33 kali systemd[1643]: Starting xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)...
Feb 20 10:16:33 kali xdg-desktop-por[13504]: gdk_display_open() was called before gtk_init()
Feb 20 10:16:33 kali systemd[1643]: xdg-desktop-portal-gnome.service: Main process exited, code=killed, status=5/TRAP
Feb 20 10:16:33 kali systemd[1643]: xdg-desktop-portal-gnome.service: Failed with result 'signal'.
Feb 20 10:16:33 kali systemd[1643]: Failed to start xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
-
Reinstalled xdg-desktop-portal and Related Packages
sudo apt update
sudo apt install --reinstall xdg-desktop-portal xdg-desktop-portal-gnome gnome-shell
sudo systemctl restart gdm -
Checked for Missing Dependencies
sudo apt --fix-broken install
sudo apt install -f -
Reset GNOME Settings
dconf reset -f /org/gnome/
sudo systemctl restart gdm -
Created a New User Account (The same issue on the new account.)
sudo adduser testuser
sudo usermod -aG sudo testuser -
Reinstalled GNOME Components
sudo apt install --reinstall libgtk-3-0 libgtk-4-0 gnome-shell gnome-session
sudo systemctl restart gdm -
Reinstalled GTK 4 components
sudo apt install --reinstall libgtk-4-1 libgtk-4-bin libgtk-4-common
-
Checked for Conflicting Services
systemctl --user stop xdg-desktop-portal.service
systemctl --user stop xdg-desktop-portal-gnome.serviceClear the user session state:
rm -rf ~/.cache/xdg-desktop-portal
rm -rf ~/.local/share/xdg-desktop-portal
What is the error:
Feb 20 10:05:24 kali systemd[1643]: Started app-gnome-org.gnome.TextEditor-7943.scope - Application launched by gnome-shell.
Feb 20 10:05:24 kali dbus-daemon[1672]: [session uid=1000 pid=1672 pidfd=5] Activating via systemd: service name=‘org.freedesktop.portal.Desktop’ unit=‘xdg-desktop-portal.service’ requested by ‘:1.144’ (uid=1000 pid=7943 comm=“/usr/bin/gnome-text-editor”)
Feb 20 10:05:24 kali dbus-daemon[1672]: [session uid=1000 pid=1672 pidfd=5] Activating via systemd: service name=‘org.freedesktop.impl.portal.desktop.gnome’ unit=‘xdg-desktop-portal-gnome.service’ requested by ‘:1.145’ (uid=1000 pid=7965 comm=“/usr/libexec/xdg-desktop-portal”)
Feb 20 10:05:24 kali systemd[1643]: Starting xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)…
Feb 20 10:05:24 kali systemd[1643]: xdg-desktop-portal-gnome.service: Main process exited, code=killed, status=5/TRAP
Feb 20 10:05:24 kali systemd[1643]: xdg-desktop-portal-gnome.service: Failed with result ‘signal’.
Feb 20 10:05:24 kali systemd[1643]: Failed to start xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Feb 20 11:54:41 kali xdg-desktop-por[35133]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was >
Feb 20 11:55:06 kali xdg-desktop-por[35133]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout >
Feb 20 11:55:06 kali xdg-desktop-por[35133]: No skeleton to export
Feb 20 11:55:21 kali systemd[1643]: xdg-desktop-portal.service: start operation timed out. Terminating.
Feb 20 11:55:21 kali systemd[1643]: xdg-desktop-portal.service: Failed with result ‘timeout’.
What device is this on:
Linux kali 6.12.13-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.12.13-1kali1 (2025-02-11) x86_64 GNU/Linux
AMD Ryzen 5 2600, Radeon RX 570.