Do not allow the second instance of Partition Manager.
BUG: 365882
This commit is contained in:
parent
d37c0ef9ce
commit
c40a729ba7
|
@ -57,6 +57,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
|
|||
ConfigWidgets
|
||||
CoreAddons
|
||||
Crash
|
||||
DBusAddons
|
||||
I18n
|
||||
IconThemes
|
||||
JobWidgets
|
||||
|
|
|
@ -44,6 +44,7 @@ target_link_libraries(partitionmanager ${BLKID_LIBRARIES}
|
|||
KF5::ConfigWidgets
|
||||
KF5::CoreAddons
|
||||
KF5::Crash
|
||||
KF5::DBusAddons
|
||||
KF5::I18n
|
||||
KF5::IconThemes
|
||||
KF5::JobWidgets
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <KAboutData>
|
||||
#include <KCrash>
|
||||
#include <KDBusService>
|
||||
#include <Kdelibs4ConfigMigrator>
|
||||
#include <KMessageBox>
|
||||
#include <KLocalizedString>
|
||||
|
@ -73,6 +74,8 @@ int Q_DECL_IMPORT main(int argc, char* argv[])
|
|||
parser.process(app);
|
||||
aboutData.processCommandLine(&parser);
|
||||
|
||||
KDBusService service(KDBusService::Unique);
|
||||
|
||||
registerMetaTypes();
|
||||
|
||||
Config::instance(QStringLiteral("partitionmanagerrc"));
|
||||
|
|
Loading…
Reference in New Issue