Handle org.freedesktop.FileManager1 in cosmic-files-applet

This commit is contained in:
Jeremy Soller 2025-01-23 14:01:59 -07:00
parent d322017e09
commit b9f43cb53e
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
4 changed files with 67 additions and 0 deletions

View file

@ -1,3 +1,11 @@
mod file_manager;
fn main() -> Result<(), Box<dyn std::error::Error>> {
//TODO: move file manager service to its own daemon?
let _conn_res = zbus::blocking::connection::Builder::session()?
.name("org.freedesktop.FileManager1")?
.serve_at("/org/freedesktop/FileManager1", file_manager::FileManager)?
.build();
cosmic_files::desktop()
}