Skip to content

Commit 7b25e46

Browse files
authored
Don't initialize Notifications dbus if disabled (flameshot-org#3598)
1 parent a293034 commit 7b25e46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/systemnotification.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ SystemNotification::SystemNotification(QObject* parent)
2424
, m_interface(nullptr)
2525
{
2626
#if !(defined(Q_OS_MACOS) || defined(Q_OS_WIN))
27+
if (!ConfigHandler().showDesktopNotification()) {
28+
return;
29+
}
2730
m_interface =
2831
new QDBusInterface(QStringLiteral("org.freedesktop.Notifications"),
2932
QStringLiteral("/org/freedesktop/Notifications"),

0 commit comments

Comments
 (0)