Skip to content
Snippets Groups Projects
Commit f81bf2d7 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Activate orbital screen on load

parent 08555f3a
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,15 @@ impl SchemeMut for DisplayScheme {
Err(Error::new(EACCES))
}
} else {
let path_str = str::from_utf8(path).unwrap_or("");
let id = path_str.parse::<usize>().unwrap_or(0);
let path_str = str::from_utf8(path).unwrap_or("").trim_matches('/');
let mut parts = path_str.split('/');
let id = parts.next().unwrap_or("").parse::<usize>().unwrap_or(0);
if self.screens.contains_key(&id) {
for cmd in parts {
if cmd == "activate" {
self.active = id;
}
}
Ok(id)
} else {
Err(Error::new(ENOENT))
......
......@@ -9,4 +9,4 @@ dhcpd -b
getty display:2
getty display:3
stdio debug:
/sbin/orbital display:4 /ui/bin/orblogin /ui/bin/launcher
/sbin/orbital display:4/activate /ui/bin/orblogin /ui/bin/launcher
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment