diff --git a/src/caja-main.c b/src/caja-main.c
index dcd9df1..73fada8 100644
--- a/src/caja-main.c
+++ b/src/caja-main.c
@@ -62,6 +62,8 @@
#include <exempi/xmp.h>
#endif
+#include <syslog.h>
+
/* Keeps track of everyone who wants the main event loop kept active */
static GSList* event_loop_registrants;
@@ -466,6 +468,20 @@ static void sigusr1_handler (int sig)
no_desktop = FALSE;
}
+ if (no_default_window) {
+ openlog ("caja", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);
+ syslog(LOG_INFO, "Starting caja with -n option, ignoring any remaining arguments...");
+ if (remaining != NULL)
+ {
+ for (i=0; remaining[i] != NULL; i++)
+ {
+ syslog(LOG_INFO, "Ignoring argument: '%s'", remaining[i]);
+ }
+ }
+ remaining = NULL;
+ closelog ();
+ }
+
if (perform_self_check && remaining != NULL)
{
/* translators: %s is an option (e.g. --check) */