Ubuntu Version:
Ubuntu 24.04 LTS
Desktop Environment (if applicable):
GNOME and KDE Plasma
Problem Description:
I recently updated from Ubuntu22.04 to 24, and since then I’ve had issues when launching the system settings.
If I try from the dash, nothing seems to happen, and if I run:
gnome-control-center
I get the message:
Running gnome-control-center is only supported under GNOME and Unity, exiting
I checked the value of the environmental variables XDG_CURRENT_DESKTOP and DESKTOP_SESSION, and they both are “ubuntu”, so, I tried running:
XDG_CURRENT_DESKTOP=GNOME gnome-control-center
and this works.
I tried to make this permanent by adding this to my /home/.profile file:
if [[ "$DESKTOP_SESSION" == "ubuntu" ]]; then
export XDG_CURRENT_DESKTOP=GNOME
fi
but it seems uneffective, the env variables still have the same value, and I can’t open settings from the dash.
I also noticed that, if I right click on the desktop and try to open the desktop settings, this doesn’t work either, but I’m not sure it is connected.
As a side note, I’m using both GNOME and KDE as desktop environment. This answer describes precisely my issue, but the solution that worked for them is to switch to gdm3, which would probably mess up when I use KDE. Is there another option?