plugin: log dylib load + service init/poll to debug missing singleton registration

This commit is contained in:
Damocles 2026-05-03 17:39:52 +02:00
commit 545812cf75

View file

@ -1,3 +1,10 @@
pub mod cpu_service;
pub mod stats;
pub mod system_stats;
// Fires when the .so is dlopen'd. Tells us the plugin file actually loaded,
// independent of whether qml_register_types runs.
#[ctor::ctor(unsafe)]
fn on_dylib_load() {
eprintln!("[nova-plugin] dylib loaded (libNovaStats.so)");
}