Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
bsdutils
bsdisks
Commits
d48b8ccf0f08
Commit
1051804b
authored
Dec 07, 2020
by
Gleb Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register the D-Bus service before running initial probes.
parent
b5ce432851d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.cpp
main.cpp
+2
-2
No files found.
main.cpp
View file @
d48b8ccf
...
...
@@ -144,11 +144,11 @@ int main(int argc, char** argv)
QThreadPool
::
globalInstance
()
->
setExpiryTimeout
(
-
1
);
QThreadPool
::
globalInstance
()
->
setMaxThreadCount
(
4
);
manager
.
initialProbe
();
QDBusConnection
::
systemBus
().
registerObject
(
"/org/freedesktop/UDisks2"
,
&
manager
);
manager
.
initialProbe
();
DevdThread
devd
;
QObject
::
connect
(
&
devd
,
&
DevdThread
::
driveAdded
,
&
manager
,
&
ObjectManager
::
addDrive
);
QObject
::
connect
(
&
devd
,
&
DevdThread
::
blockAdded
,
&
manager
,
&
ObjectManager
::
addBlock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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