From b4be5a5786c107c7aa771cf26b19fa145231ad88 Mon Sep 17 00:00:00 2001 From: Drakulix Date: Sat, 25 Nov 2017 13:56:38 +0100 Subject: [PATCH] Comment out logind integration for now --- Cargo.toml | 3 ++- src/backend/session/mod.rs | 5 +++-- src/lib.rs | 6 ++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 06ba3f0..c1cab99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,7 @@ wayland-protocols = { version = "0.12.0", features = ["unstable_protocols", "ser image = "0.17.0" error-chain = "0.11.0" dbus = { version = "0.5.4", optional = true } +systemd = { version = "0.1.0", optional = true } [build-dependencies] gl_generator = "0.5" @@ -43,6 +44,6 @@ backend_drm = ["drm", "gbm"] backend_libinput = ["input"] backend_session = [] backend_session_udev = ["libudev", "backend_session"] -backend_session_logind = ["backend_session", "dbus"] +backend_session_logind = ["backend_session", "dbus", "systemd"] backend_udev = ["libudev", "backend_drm", "backend_session_udev"] renderer_glium = ["glium"] diff --git a/src/backend/session/mod.rs b/src/backend/session/mod.rs index e69cd59..5a297ca 100644 --- a/src/backend/session/mod.rs +++ b/src/backend/session/mod.rs @@ -102,5 +102,6 @@ impl AsErrno for () { } pub mod direct; -#[cfg(feature = "backend_session_logind")] -pub mod logind; + +//#[cfg(feature = "backend_session_logind")] +//pub mod logind; diff --git a/src/lib.rs b/src/lib.rs index 95042e3..0ac797e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,6 +25,12 @@ extern crate gbm; extern crate input; #[cfg(feature = "backend_udev")] extern crate libudev; +/* +#[cfg(feature = "backend_session_logind")] +extern crate dbus; +#[cfg(feature = "backend_session_logind")] +extern crate systemd; +*/ #[cfg(feature = "backend_winit")] extern crate wayland_client; #[cfg(feature = "backend_winit")]