Skip to content

Commit

Permalink
Avoid spurious warnings when dbus.service stops
Browse files Browse the repository at this point in the history
Services in this project generate a warning when they lose ownership of their
D-Bus name, which happens routinely when dbus.service exits
(e.g. when the user logs out).

Stop services before dbus.service exits, to avoid this warning.
  • Loading branch information
andrew-sayers committed Feb 20, 2025
1 parent f7837cc commit 02f0b57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions document-portal/xdg-document-portal.service.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=flatpak document portal service
PartOf=graphical-session.target
Requires=dbus.service
After=dbus.service

[Service]
BusName=org.freedesktop.portal.Documents
Expand Down
2 changes: 2 additions & 0 deletions document-portal/xdg-permission-store.service.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=sandboxed app permission store
PartOf=graphical-session.target
Requires=dbus.service
After=dbus.service

[Service]
BusName=org.freedesktop.impl.portal.PermissionStore
Expand Down
2 changes: 2 additions & 0 deletions src/xdg-desktop-portal.service.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=Portal service
PartOf=graphical-session.target
Requires=dbus.service
After=dbus.service

[Service]
Type=dbus
Expand Down

0 comments on commit 02f0b57

Please sign in to comment.