Private
Public Access
1
0

Fix linux build

This commit is contained in:
2025-07-31 19:40:03 -07:00
parent c7d620c1b5
commit 43b668e9a2
3 changed files with 8 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ fn initialize_logging() {
}
#[cfg(target_os = "linux")]
async fn start_ipc_agent(daemon: &Daemon) {
async fn start_ipc_agent(daemon: &mut Daemon) {
use dbus::agent::DBusAgent;
// Start the D-Bus agent (events in, signals out).
@@ -32,12 +32,12 @@ async fn start_ipc_agent(daemon: &Daemon) {
}
#[cfg(target_os = "macos")]
async fn start_ipc_agent(daemon: &Daemon) {
async fn start_ipc_agent(daemon: &mut Daemon) {
// TODO: Implement macOS IPC agent.
}
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
async fn start_ipc_agent(daemon: &Daemon) {
async fn start_ipc_agent(daemon: &mut Daemon) {
panic!("Unsupported IPC platform");
}
@@ -54,7 +54,7 @@ async fn main() {
.unwrap();
// Start the IPC agent.
start_ipc_agent(&daemon).await;
start_ipc_agent(&mut daemon).await;
// Run the main daemon loop.
daemon.run().await;

View File

@@ -1,7 +1,7 @@
mod client;
mod daemon;
mod db;
mod printers;
mod daemon;
use anyhow::Result;
use clap::{Parser, Subcommand};

View File

@@ -4,6 +4,9 @@ use std::collections::HashMap;
use std::fmt::Display;
use time::OffsetDateTime;
#[cfg(target_os = "linux")]
use dbus::arg::{self, RefArg};
pub struct PrintableConversation {
pub guid: String,
pub date: OffsetDateTime,