Skip to content

Commit

Permalink
small changes to make flameshot recognize cosmic desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredlotz committed Sep 15, 2024
1 parent 14a1367 commit c19095b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/desktopinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ DesktopInfo::WM DesktopInfo::windowManager()
if (desktop.contains(QLatin1String("kde-plasma"))) {
return DesktopInfo::KDE;
}
if (desktop.contains(QLatin1String("cosmic"))) {
return DesktopInfo::COSMIC;
}
}

if (!GNOME_DESKTOP_SESSION_ID.isEmpty()) {
Expand Down
1 change: 1 addition & 0 deletions src/utils/desktopinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class DesktopInfo
{
GNOME,
KDE,
COSMIC,
OTHER,
QTILE,
SWAY,
Expand Down

0 comments on commit c19095b

Please sign in to comment.