Remove (incomplete) logind support for now
This commit is contained in:
parent
5f59ded3f0
commit
c9e7624a33
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
|
@ -153,6 +153,3 @@ impl AsErrno for () {
|
|||
}
|
||||
|
||||
pub mod direct;
|
||||
|
||||
//#[cfg(feature = "backend_session_logind")]
|
||||
//pub mod logind;
|
||||
|
|
Loading…
Reference in New Issue