Remove (incomplete) logind support for now

This commit is contained in:
Drakulix 2017-12-07 15:25:21 +01:00
parent 5f59ded3f0
commit c9e7624a33
3 changed files with 0 additions and 33 deletions

View File

@ -25,8 +25,6 @@ rental = "0.4.11"
wayland-protocols = { version = "0.12.0", features = ["unstable_protocols", "server"] } wayland-protocols = { version = "0.12.0", features = ["unstable_protocols", "server"] }
image = "0.17.0" image = "0.17.0"
error-chain = "0.11.0" error-chain = "0.11.0"
dbus = { version = "0.5.4", optional = true }
systemd = { version = "0.1.0", optional = true }
[build-dependencies] [build-dependencies]
gl_generator = "0.5" gl_generator = "0.5"
@ -44,7 +42,6 @@ backend_drm = ["drm", "gbm"]
backend_libinput = ["input"] backend_libinput = ["input"]
backend_session = [] backend_session = []
backend_session_udev = ["udev", "backend_session"] backend_session_udev = ["udev", "backend_session"]
backend_session_logind = ["backend_session", "dbus", "systemd"]
backend_udev = ["udev", "backend_drm", "backend_session_udev"] backend_udev = ["udev", "backend_drm", "backend_session_udev"]
renderer_glium = ["glium"] renderer_glium = ["glium"]

View File

@ -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<LogindSession> {
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 {
}
}

View File

@ -153,6 +153,3 @@ impl AsErrno for () {
} }
pub mod direct; pub mod direct;
//#[cfg(feature = "backend_session_logind")]
//pub mod logind;