Add protocol name to music player
This commit is contained in:
parent
f4a366a215
commit
0b8ce299b5
|
@ -86,8 +86,9 @@ fn main() {
|
|||
let player_finder = PlayerFinder::new().expect("Could not connect to D-Bus");
|
||||
|
||||
let mut magpie = MagpieClient::new().unwrap();
|
||||
let protocol = "tebibyte-media.desktop.music-player-controller".to_string();
|
||||
let script = std::path::PathBuf::from(&module_path);
|
||||
let msg = CreatePanel { id: 0, script };
|
||||
let msg = CreatePanel { id: 0, protocol, script };
|
||||
let msg = MagpieServerMsg::CreatePanel(msg);
|
||||
magpie.messenger.send(&msg).unwrap();
|
||||
|
||||
|
|
Loading…
Reference in New Issue