mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #2601 from sudden6:cinnamon_support2
sudden6 (1): treat x-cinnamon the same as gnome
This commit is contained in:
commit
1b2a7cbcad
|
@ -60,7 +60,7 @@ SystemTrayIcon::SystemTrayIcon()
|
|||
}
|
||||
#endif
|
||||
#ifdef ENABLE_SYSTRAY_GTK_BACKEND
|
||||
else if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate")
|
||||
else if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate" || desktop == "x-cinnamon")
|
||||
{
|
||||
qDebug() << "Using GTK backend";
|
||||
backendType = SystrayBackendType::GTK;
|
||||
|
|
|
@ -1897,7 +1897,7 @@ inline QIcon Widget::prepareIcon(QString path, uint32_t w, uint32_t h)
|
|||
}
|
||||
desktop = desktop.toLower();
|
||||
|
||||
if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate")
|
||||
if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate" || desktop == "x-cinnamon")
|
||||
{
|
||||
if (w > 0 && h > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user