status-area: Fix how watcher handles some paths
This commit is contained in:
parent
324b2daf65
commit
ef6e865963
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ impl StatusNotifierWatcher {
|
|||
#[zbus(header)] hdr: MessageHeader<'_>,
|
||||
#[zbus(signal_context)] ctxt: SignalContext<'_>,
|
||||
) {
|
||||
let service = format!("{}{}", hdr.sender().unwrap().unwrap(), service);
|
||||
let service = if service.starts_with('/') {
|
||||
format!("{}{}", hdr.sender().unwrap().unwrap(), service)
|
||||
} else {
|
||||
service.to_string()
|
||||
};
|
||||
Self::StatusNotifierItemRegistered(&ctxt, &service)
|
||||
.await
|
||||
.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue