Bug 35306 - dbus-specification should document the .service search paths
Summary: dbus-specification should document the .service search paths
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: 1.4.x
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: John (J5) Palmieri
URL: http://cgit.freedesktop.org/~smcv/dbu...
Whiteboard:
Keywords: patch
Depends on: 35229
Blocks: 21620 dbus-1.5
  Show dependency treegraph
 
Reported: 2011-03-14 09:15 UTC by Simon McVittie
Modified: 2012-02-10 02:30 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
spec: document the search path for session services (1.57 KB, patch)
2011-04-12 08:32 UTC, Simon McVittie
Details | Splinter Review
[2/2] spec: document how to install session .service files (1.37 KB, patch)
2012-02-08 08:14 UTC, Simon McVittie
Details | Splinter Review

Description Simon McVittie 2011-03-14 09:15:44 UTC
+++ This bug was initially created as a clone of Bug #35229 +++

dbus-specification should mention the search paths for .service files, at least on Unix.

Session bus:

    - first ${XDG_DATA_DIRS}/dbus-1/services as defined by the XDG basedir spec
    - then any implementation-specific locations

System bus:

    - first ${XDG_DATA_DIRS}/dbus-1/system-services, again as defined by
      the XDG basedir spec
    - then /lib/dbus-1/system-services for early boot (Bug #35229)
    - then any implementation-specific locations

/lib means /lib, not /lib64 or /lib/multiarch-tuple, even if it's not where shared libraries would be put; it's specifically being used as an early-boot analogue for /usr/share.
Comment 1 Simon McVittie 2011-04-12 08:32:30 UTC
Created attachment 45533 [details] [review]
spec: document the search path for session services

This fixes half the bug: it documents the search path for session services, which is uncontroversial. See Bug #21620 for discussion of what the search path for system services should be.
Comment 2 Simon McVittie 2012-02-08 07:33:49 UTC
Repurposing this for "just the session bus". The system bus search path can be documented as part of Bug #21620.

Also in git if you prefer reviewing that way:

ssh://people.freedesktop.org/~smcv/dbus.git doc-search-paths-35306
Comment 3 Simon McVittie 2012-02-08 08:14:39 UTC
Created attachment 56757 [details] [review]
[2/2] spec: document how to install session .service files

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35306
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Comment 4 Lennart Poettering 2012-02-09 10:47:46 UTC
Both patches look goot to me.
Comment 5 Simon McVittie 2012-02-10 02:30:10 UTC
Thanks, fixed in git for 1.5.10.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.