🚧 Doesn't work...
This commit is contained in:
parent
c84857ae9b
commit
1350cd4335
2 changed files with 8 additions and 2 deletions
|
|
@ -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(),
|
||||
));
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue