Skip to content

Commit

Permalink
moving to freedesktop check
Browse files Browse the repository at this point in the history
COSMIC is in the Freedesktop.org table apparently, so it makes more sense to check it there.
  • Loading branch information
netraptor committed Oct 5, 2024
1 parent 40d37d9 commit ea66fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ impl DesktopEnvironment {
pub fn from_freedesktop(name: &str) -> Option<Self> {
// the patterns in the match below are ordered to match the order in the freedesktop table
match name {
"COSMIC" => Some(DesktopEnvironment::CosmicEpoch),
"GNOME" => Some(DesktopEnvironment::Gnome),
"GNOME-Classice" => Some(DesktopEnvironment::Gnome),
"GNOME-Flashback" => Some(DesktopEnvironment::Gnome),
Expand Down Expand Up @@ -258,7 +259,6 @@ impl DesktopEnvironment {

// keep the patterns sorted alphabetically
match name {
"COSMIC" => Some(DesktopEnvironment::CosmicEpoch),
"ENLIGHTENMENT" => Some(DesktopEnvironment::Enlightenment),
"Hyprland" => Some(DesktopEnvironment::Hyprland),
"SWAY" => Some(DesktopEnvironment::Sway),
Expand Down

0 comments on commit ea66fd1

Please sign in to comment.