CODA-Q: Cleanup DBus name registration when exiting. #13974
+12
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a desctructor to DBusService that unregisters the object and service during shutdown.
This should fix any issues users may be having with the flatpak leaving the name in use after exit causing the application to not launch afterwards.
I think this is an improvement, but I'm not 100% sure how to test what I built. flatpak list shows a test branch version, but I'm not sure if that's what I just built locally with my changes or something else. Anyway, wanted to get more eyes on it in case this is all we need. Will continue to figure out if what I'm testing is what I built.
Change-Id: I6af3a852433d28ccc6fe3b4ebb3b9a0f6a39a579
Summary
TODO
Checklist
make prettier-writeand formatted the code.make checkmake runand manually verified that everything looks okay