Merge lp://staging/~charlesk/indicator-sound/lp-1427708-demote-error-to-warning into lp://staging/indicator-sound/15.04
Status: | Merged |
---|---|
Approved by: | Ted Gould |
Approved revision: | 488 |
Merged at revision: | 486 |
Proposed branch: | lp://staging/~charlesk/indicator-sound/lp-1427708-demote-error-to-warning |
Merge into: | lp://staging/indicator-sound/15.04 |
Diff against target: |
117 lines (+40/-34) 1 file modified
src/main.c (+40/-34) |
To merge this branch: | bzr merge lp://staging/~charlesk/indicator-sound/lp-1427708-demote-error-to-warning |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Ted Gould (community) | Approve | ||
Review via email: mp+252172@code.staging.launchpad.net |
Commit message
Exit more gracefully on startup when the session bus can't be found.
Description of the change
Removes the extra bus-fetching sync call on startup in main().
This effectively leaves "can't get the bus" error reporting to g_bus_own_name()'s name_lost_handler, which in this patch is a g_warning() instead of g_error() s.t. we don't have as many crash-on-startup errors reported such as bug #1427708. This is the same approach that other indicators take.
Tested on vivd mako r124
To test:
$ stop indicator-datetime
$ DBUS_SESSION_
Result should be the app does not crash; rather, it exits after giving a warning such as "indicator-
FAILED: Continuous integration, rev:486 jenkins. qa.ubuntu. com/job/ indicator- sound-ci/ 217/ jenkins. qa.ubuntu. com/job/ indicator- sound-vivid- amd64-ci/ 44/console jenkins. qa.ubuntu. com/job/ indicator- sound-vivid- armhf-ci/ 44 jenkins. qa.ubuntu. com/job/ indicator- sound-vivid- armhf-ci/ 44/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- sound-ci/ 217/rebuild
http://