Skip to content

fix: panic on Ubuntu (GNOME) when opening apps#821

Merged
luohoufu merged 1 commit intomainfrom
fix/ubuntu_gnome
Jul 25, 2025
Merged

fix: panic on Ubuntu (GNOME) when opening apps#821
luohoufu merged 1 commit intomainfrom
fix/ubuntu_gnome

Conversation

@SteveLauC
Copy link
Copy Markdown
Member

@SteveLauC SteveLauC commented Jul 25, 2025

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.

What does this PR do

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

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.
@luohoufu luohoufu merged commit 286b1be into main Jul 25, 2025
4 checks passed
@luohoufu luohoufu deleted the fix/ubuntu_gnome branch July 25, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants