Bug 35306

Summary: dbus-specification should document the .service search paths
Product: dbus Reporter: Simon McVittie <smcv>
Component: coreAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium CC: lennart, walters
Version: 1.4.xKeywords: patch
Hardware: Other   
OS: All   
URL: http://cgit.freedesktop.org/~smcv/dbus/log/?h=doc-search-paths-35306
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 35229    
Bug Blocks: 21620, 36164    
Attachments: spec: document the search path for session services
[2/2] spec: document how to install session .service files

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.