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.
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?