Merge lp:~ted/upstart/obj-path into lp:upstart
Proposed by
Ted Gould
Status: | Merged |
---|---|
Approved by: | Steve Langasek |
Approved revision: | 1528 |
Merged at revision: | 1527 |
Proposed branch: | lp:~ted/upstart/obj-path |
Merge into: | lp:upstart |
Diff against target: |
33 lines (+3/-3) 2 files modified
extra/man/dbus-event.7 (+2/-2) extra/upstart-dbus-bridge.c (+1/-1) |
To merge this branch: | bzr merge lp:~ted/upstart/obj-path |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Approve | ||
Review via email: mp+183259@code.launchpad.net |
Commit message
Change dbus object path from PATH to OBJPATH
Description of the change
With dbus events one of the environment variables is PATH. Which makes sense as it is the path to the object emitting the signal. But, unfortunately it overrides the perhaps more common use of PATH, to say where to find binaries. This makes it very hard to have scripts in a job that is listening on dbus events. I'm suggesting we change it to OBJPATH. While I realize this is an interface change, I think that it might effect few enough people, and all of them will like it, that it would be worth it.
To post a comment you must log in.
Obviously correct that we should not be overriding the special variable name "PATH" with something here. This breaks compatibility, but the current behavior is sufficiently wrong that I don't think we need to worry about preserving compatibility.