Base code for figuring out how apps work

This commit is contained in:
Lucy 2022-03-24 13:35:33 -04:00
parent cd5970dceb
commit af3470df11
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1

View file

@ -8,5 +8,15 @@ mod app;
use relm4::RelmApp;
fn main() {
figure_out_apps();
RelmApp::<app::App>::new("com.system76.cosmic.applets.audio").run(());
}
fn figure_out_apps() {
use pulsectl::controllers::{AppControl, SinkController};
let mut sink = SinkController::create().unwrap();
for app in sink.list_applications().unwrap() {
println!("{:#?}", app);
}
}