From 41290f02124ffc75d5fdae0665e511e59d647001 Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Sun, 3 Dec 2017 15:48:45 +0100 Subject: [PATCH] Add dbus notifications xml --- dbus/org.freedesktop.Notifications.xml | 30 +++++++++++++++++++ .../workers/launcher/applauncherwidget.cpp | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 dbus/org.freedesktop.Notifications.xml diff --git a/dbus/org.freedesktop.Notifications.xml b/dbus/org.freedesktop.Notifications.xml new file mode 100644 index 00000000..e9630a61 --- /dev/null +++ b/dbus/org.freedesktop.Notifications.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/capture/workers/launcher/applauncherwidget.cpp b/src/capture/workers/launcher/applauncherwidget.cpp index 019b9274..0d145871 100644 --- a/src/capture/workers/launcher/applauncherwidget.cpp +++ b/src/capture/workers/launcher/applauncherwidget.cpp @@ -35,6 +35,8 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap &p, QWidget *parent): setAttribute(Qt::WA_DeleteOnClose); m_keepOpen = ConfigHandler().keepOpenAppLauncherValue(); + // In case of wanting to know the default app for a mime: + // xdg-mime query default image/png QString dir = "/usr/share/applications/"; QString dirLocal = "~/.local/share/applications/"; QDir appsDirLocal(dirLocal);