diff --git a/Cargo.toml b/Cargo.toml index 475fd93..9def7cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,8 +25,6 @@ rental = "0.4.11" wayland-protocols = { version = "0.12.0", features = ["unstable_protocols", "server"] } 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" @@ -44,7 +42,6 @@ backend_drm = ["drm", "gbm"] backend_libinput = ["input"] backend_session = [] backend_session_udev = ["udev", "backend_session"] -backend_session_logind = ["backend_session", "dbus", "systemd"] backend_udev = ["udev", "backend_drm", "backend_session_udev"] renderer_glium = ["glium"] diff --git a/src/backend/session/logind.rs b/src/backend/session/logind.rs deleted file mode 100644 index 2df3563..0000000 --- a/src/backend/session/logind.rs +++ /dev/null @@ -1,27 +0,0 @@ -use dbus::{BusType, Connection as DbusConnection}; -use systemd::login as logind; - -pub struct LogindSession { - dbus: DbusConnection, -} - -impl Session for LogindSession { - -} - -impl LogindSession { - pub fn new() -> Result { - let session = logind::get_session(None)?; - let vt = logind::get_vt(&session)?; - let seat = logind::get_seat(&session)?; - - let dbus = DbusConnection::get_private(BusType::System)?; - - } -} - -error_chain! { - errors { - - } -} diff --git a/src/backend/session/mod.rs b/src/backend/session/mod.rs index 986a114..74a966f 100644 --- a/src/backend/session/mod.rs +++ b/src/backend/session/mod.rs @@ -153,6 +153,3 @@ impl AsErrno for () { } pub mod direct; - -//#[cfg(feature = "backend_session_logind")] -//pub mod logind;