From ea1fee2f5f842a293458a66638c15ff79e1d101d Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 30 Nov 2020 15:22:31 +0000 Subject: main: Linux - ask to create desktop entry on the first start --- src/main/oshelper.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/oshelper.cpp') diff --git a/src/main/oshelper.cpp b/src/main/oshelper.cpp index 9b24262e..7584732e 100644 --- a/src/main/oshelper.cpp +++ b/src/main/oshelper.cpp @@ -46,11 +46,13 @@ #endif #if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) #include +#undef Bool #undef KeyPress #undef KeyRelease #undef FocusIn #undef FocusOut // #undef those Xlib #defines that conflict with QEvent::Type enum +#include "qt/utils.h" #endif #if defined(Q_OS_WIN) @@ -85,6 +87,13 @@ OSHelper::OSHelper(QObject *parent) : QObject(parent) } +void OSHelper::createDesktopEntry() const +{ +#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) + registerXdgMime(); +#endif +} + QString OSHelper::downloadLocation() const { return QStandardPaths::writableLocation(QStandardPaths::DownloadLocation); -- cgit v1.2.3