mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
treat x-cinnamon the same as gnome
This commit is contained in:
parent
0ef39aa06a
commit
17e43d9835
|
@ -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