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

View File

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

View File

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