mirror of
https://github.com/infinilabs/coco-app.git
synced 2026-09-01 19:51:52 +02:00
On Ubuntu (the GNOME version), Coco would panic when users open an app due to the reason that Coco thinks it is running in an unsupported desktop environment (DE). We rely on the environment variable XDG_CURRENT_DESKTOP to detect the DE, Ubuntu sets this variable to "ubuntu:GNOME" instead of just "GNOME", which was not handled by the previous implementation. This commit supports this case. Also, when Coco runs in an unsupported DE, opening apps should not panic the app. After this commit, we would return an error.