mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
parent
3c7e434e52
commit
660dc81e7d
7 changed files with 207 additions and 181 deletions
|
@ -1,7 +1,7 @@
|
|||
mod sink;
|
||||
mod sink_input;
|
||||
|
||||
use crate::{arc_mut, lock, register_client, send, spawn_blocking};
|
||||
use crate::{arc_mut, lock, register_client, send, spawn_blocking, APP_ID};
|
||||
use libpulse_binding::callbacks::ListResult;
|
||||
use libpulse_binding::context::introspect::{Introspector, ServerInfo};
|
||||
use libpulse_binding::context::subscribe::{Facility, InterestMaskSet, Operation};
|
||||
|
@ -88,10 +88,7 @@ impl Client {
|
|||
return;
|
||||
};
|
||||
|
||||
if proplist
|
||||
.set_str("APPLICATION_NAME", "dev.jstanger.ironbar")
|
||||
.is_err()
|
||||
{
|
||||
if proplist.set_str("APPLICATION_NAME", APP_ID).is_err() {
|
||||
error!("Failed to update PA proplist");
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ mod popup;
|
|||
mod script;
|
||||
mod style;
|
||||
|
||||
const GTK_APP_ID: &str = "dev.jstanger.ironbar";
|
||||
pub const APP_ID: &str = "dev.jstanger.ironbar";
|
||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
fn main() {
|
||||
|
@ -111,7 +111,7 @@ impl Ironbar {
|
|||
info!("Ironbar version {}", VERSION);
|
||||
info!("Starting application");
|
||||
|
||||
let app = Application::builder().application_id(GTK_APP_ID).build();
|
||||
let app = Application::builder().application_id(APP_ID).build();
|
||||
|
||||
let running = AtomicBool::new(false);
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use crate::clients::volume;
|
||||
use crate::clients::volume::Event;
|
||||
use crate::clients::volume::{self, Event};
|
||||
use crate::config::CommonConfig;
|
||||
use crate::gtk_helpers::IronbarGtkExt;
|
||||
use crate::modules::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue