mod audio;
mod bluetooth;
mod datetime;
mod desktop;
mod display;
mod info;
mod power;
mod powermanager;

pub use audio::*;
pub use bluetooth::*;
pub use datetime::*;
pub use desktop::*;
pub use display::*;
pub use info::*;
pub use power::*;
pub use powermanager::*;

use std::process::Command;

/// Run a command and return its stdout as a string; empty on any failure.
pub( crate ) fn cmd_stdout( bin: &str, args: &[ &str ] ) -> String
{
	Command::new( bin ).args( args ).output().ok()
		.and_then( |o| String::from_utf8( o.stdout ).ok() )
		.unwrap_or_default()
}
