Base code for figuring out how apps work
This commit is contained in:
parent
cd5970dceb
commit
af3470df11
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue