[mate-file-manager/f20] add mate-file-manager_surpress-x-caja-desktops.patch to spec file

Wolfgang Ulbrich raveit65 at fedoraproject.org
Mon Dec 16 22:38:56 UTC 2013


commit 1c67bb84adde5ea137a508d48caa71da5e6a94bc
Author: raveit65 <chat-to-me at raveit.de>
Date:   Mon Dec 16 23:38:28 2013 +0100

    add mate-file-manager_surpress-x-caja-desktops.patch to spec file

 mate-file-manager_x-caja-windows-debugging.patch |   35 ++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/mate-file-manager_x-caja-windows-debugging.patch b/mate-file-manager_x-caja-windows-debugging.patch
new file mode 100644
index 0000000..60f451b
--- /dev/null
+++ b/mate-file-manager_x-caja-windows-debugging.patch
@@ -0,0 +1,35 @@
+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) */
+


More information about the scm-commits mailing list