~ubuntu-branches/ubuntu/saucy/pulseaudio/saucy-proposed

« back to all changes in this revision

Viewing changes to src/modules/module-systemd-login.c

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich, Martin Pitt
  • Date: 2013-04-29 15:13:12 UTC
  • Revision ID: package-import@ubuntu.com-20130429151312-8yr0cd2m4s3ur4sr
Tags: 1:3.0-0ubuntu7
[ Martin Pitt ]
* Add 0111-logind-check.patch: Check for logind, not for systemd init. Patch
  backported from upstream master.
* Switch to logind for session tracking:
  - debian/control: Add systemd build dependencies for logind support. Move
    dependency from consolekit to libpam-systemd.
  - debian/pulseaudio.install: Install logind module instead of the
    consolekit module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <sys/types.h>
32
32
 
33
33
#include <systemd/sd-login.h>
34
 
#include <systemd/sd-daemon.h>
35
34
 
36
35
#include <pulse/xmalloc.h>
37
36
 
170
169
 
171
170
    pa_assert(m);
172
171
 
173
 
    /* If we are not actually booting with systemd become a NOP */
174
 
    if (sd_booted() <= 0)
 
172
    /* If we are not actually running logind become a NOP */
 
173
    if (access("/run/systemd/seats/", F_OK) < 0)
175
174
        return 0;
176
175
 
177
176
    ma = pa_modargs_new(m->argument, valid_modargs);