mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-09 16:10:34 -04:00
Some basic structure.
Added some structures, enums, etc. to hold the data we will need. Added an initialize_apis that only looks for config files so far. TODO: Use zbus to create our service, register the name, etc. to start. Decide on a config file format (maybe after getting some zbus details fleshed out and knowing better what will fit well) Add error messages and don't fail on errors, just log them.
This commit is contained in:
parent
5fc50f4ac9
commit
666ac09607
3 changed files with 70 additions and 0 deletions
11
src/main.rs
Normal file
11
src/main.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use steamos_manager::{self, SmEntry, initialize_apis};
|
||||
|
||||
fn main() {
|
||||
// This daemon is responsible for creating a dbus api that steam client can use to do various OS
|
||||
// level things (change brightness, etc.) In order to do that it reads a folder of dbus api
|
||||
// configuration files and exposes each configuration with the api in the config file. In order
|
||||
// to know what to do with each it gets the information from the same config file about whether
|
||||
// to run a script or call some other dbus api.
|
||||
|
||||
let mut manager_apis: Vec<SmEntry> = initialize_apis("/usr/share/steamos-manager".to_string());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue