Skip to content

Commit 899c55e

Browse files
authored
small changes to make flameshot recognize cosmic desktop (#3725)
1 parent 74bb870 commit 899c55e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/utils/desktopinfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ DesktopInfo::WM DesktopInfo::windowManager()
4343
if (desktop.contains(QLatin1String("kde-plasma"))) {
4444
return DesktopInfo::KDE;
4545
}
46+
if (desktop.contains(QLatin1String("cosmic"))) {
47+
return DesktopInfo::COSMIC;
48+
}
4649
}
4750

4851
if (!GNOME_DESKTOP_SESSION_ID.isEmpty()) {

src/utils/desktopinfo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class DesktopInfo
1414
{
1515
GNOME,
1616
KDE,
17+
COSMIC,
1718
OTHER,
1819
QTILE,
1920
SWAY,

0 commit comments

Comments
 (0)