From ae8394e5f87fecabf50e1607ba384af1d8218d29 Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 7 Dec 2020 20:06:55 +0000 Subject: main: Linux - fix missing askDesktopShortcut setting --- src/qt/utils.cpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/qt/utils.cpp') diff --git a/src/qt/utils.cpp b/src/qt/utils.cpp index b7d649f4..b2e04ec2 100644 --- a/src/qt/utils.cpp +++ b/src/qt/utils.cpp @@ -28,7 +28,6 @@ #include #include -#include #include #include "TailsOS.h" @@ -89,17 +88,6 @@ QString getAccountName(){ } #ifdef Q_OS_LINUX -bool askInstallDesktopEntry() -{ - QMessageBox msgBox( - QMessageBox::Question, - QObject::tr("Monero GUI"), - QObject::tr("Would you like to register Monero GUI Desktop entry?"), - QMessageBox::Yes | QMessageBox::No); - msgBox.setDefaultButton(QMessageBox::Yes); - return msgBox.exec() == QMessageBox::Yes; -} - QString xdgMime(){ return QString( "[Desktop Entry]\n" @@ -139,11 +127,8 @@ void registerXdgMime(){ } else { - if (askInstallDesktopEntry()) - { - QDir().mkpath(QFileInfo(filePath).path()); - fileWrite(filePath, mime); - } + QDir().mkpath(QFileInfo(filePath).path()); + fileWrite(filePath, mime); } } #endif -- cgit v1.2.3