🚧 Doesn't work...

This commit is contained in:
Lucy 2022-06-24 15:43:48 -04:00
parent c84857ae9b
commit 1350cd4335
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
2 changed files with 8 additions and 2 deletions

View file

@ -40,6 +40,12 @@ async fn main() -> Result<()> {
tokio::spawn(panel::run_panel(
token.child_token(),
"testing-panel",
wayland_socket.clone(),
));
tokio::spawn(panel::run_panel(
token.child_token(),
"testing-dock",
wayland_socket.clone(),
));

View file

@ -3,9 +3,9 @@ use crate::process::{ProcessEvent, ProcessHandler};
use tokio::sync::mpsc::unbounded_channel;
use tokio_util::sync::CancellationToken;
pub async fn run_panel(token: CancellationToken, wayland_socket: String) {
pub async fn run_panel(token: CancellationToken, config: &str, wayland_socket: String) {
let (tx, mut rx) = unbounded_channel::<ProcessEvent>();
ProcessHandler::new(tx, &token).run("cosmic-panel", vec![], vec![(
ProcessHandler::new(tx, &token).run("cosmic-panel", vec![config.to_string()], vec![(
"WAYLAND_SOCKET".into(),
wayland_socket,
)]);