{
printf(_("Usage: %s [OPTION]...\n"), program_name);
- puts(_("psensor is a GTK application for monitoring hardware sensors, "
+ puts(_("Psensor is a GTK+ application for monitoring hardware sensors, "
"including temperatures and fan speeds."));
puts("");
config_cleanup();
log_debug("Cleanup done, closing log");
-
- log_close();
}
/*
rsensor_init();
sensors = get_remote_sensors(url, 600);
#else
- fprintf(stderr,
- _("ERROR: Not compiled with remote sensor support.\n"));
+ log_err(_("Psensor has not been compiled"
+ " with remote sensor support."));
exit(EXIT_FAILURE);
#endif
} else {
if (!new_instance && g_application_get_is_remote(app)) {
g_application_activate(app);
- log_warn(_("Psensor instance already exists"));
+ log_warn(_("A Psensor instance already exists."));
exit(EXIT_SUCCESS);
}
g_object_ref(app);
cleanup(&ui);
+
log_debug("Quitting...");
+ log_close();
return 0;
}