Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
c3a50dcd
Commit
c3a50dcd
authored
Feb 09, 2022
by
Aleix Pol Gonzalez
🐧
Browse files
update: Ensure we never have two update processes running in parallel
parent
8129152a
Pipeline
#135405
passed with stage
in 1 minute and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
update/CMakeLists.txt
View file @
c3a50dcd
add_executable
(
plasma-discover-update main.cpp DiscoverUpdate.cpp
)
set_target_properties
(
plasma-discover-update PROPERTIES INSTALL_RPATH
${
CMAKE_INSTALL_FULL_LIBDIR
}
/plasma-discover
)
target_link_libraries
(
plasma-discover-update Discover::Common KF5::CoreAddons KF5::I18n
)
target_link_libraries
(
plasma-discover-update Discover::Common KF5::CoreAddons KF5::I18n
KF5::DBusAddons
)
install
(
TARGETS plasma-discover-update
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
update/main.cpp
View file @
c3a50dcd
...
...
@@ -8,6 +8,7 @@
#include
"DiscoverUpdate.h"
#include
<DiscoverBackendsFactory.h>
#include
<KAboutData>
#include
<KDBusService>
#include
<KLocalizedString>
#include
<QCommandLineParser>
#include
<QGuiApplication>
...
...
@@ -22,6 +23,8 @@ int main(int argc, char **argv)
about
.
setProductName
(
"discover/update"
);
KAboutData
::
setApplicationData
(
about
);
KDBusService
service
(
KDBusService
::
Unique
);
DiscoverUpdate
exp
;
{
QCommandLineParser
parser
;
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
ad9ad39c
·
Feb 09, 2022
mentioned in commit
ad9ad39c
mentioned in commit ad9ad39cf2e63a087dbe430b3bb2f93d7e1eae95
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment