dbus: Use calloop async executor
New version of callop has a fix for this, so we're no longer blocked from using it.
This commit is contained in:
parent
3c834e9c85
commit
571565c28e
3 changed files with 17 additions and 14 deletions
|
|
@ -32,7 +32,6 @@ use crate::{
|
|||
use anyhow::Context;
|
||||
use calloop::RegistrationToken;
|
||||
use cosmic_comp_config::output::comp::{OutputConfig, OutputState};
|
||||
use futures_executor::ThreadPool;
|
||||
use i18n_embed::{
|
||||
DesktopLanguageRequester,
|
||||
fluent::{FluentLanguageLoader, fluent_language_loader},
|
||||
|
|
@ -234,7 +233,7 @@ pub struct Common {
|
|||
pub display_handle: DisplayHandle,
|
||||
pub event_loop_handle: LoopHandle<'static, State>,
|
||||
pub event_loop_signal: LoopSignal,
|
||||
pub async_executor: ThreadPool,
|
||||
pub async_executor: calloop::futures::Scheduler<()>,
|
||||
|
||||
pub popups: PopupManager,
|
||||
pub shell: Arc<parking_lot::RwLock<Shell>>,
|
||||
|
|
@ -727,7 +726,8 @@ impl State {
|
|||
);
|
||||
let workspace_state = WorkspaceState::new(dh, client_not_sandboxed);
|
||||
|
||||
let async_executor = ThreadPool::builder().pool_size(1).create().unwrap();
|
||||
let (source, async_executor) = calloop::futures::executor().unwrap();
|
||||
handle.insert_source(source, |_, _, _| {}).unwrap();
|
||||
|
||||
if let Err(err) = crate::dbus::init(&handle) {
|
||||
tracing::warn!(?err, "Failed to initialize dbus handlers");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue