summaryrefslogtreecommitdiffstats
path: root/x11/gnome-screensaver/files/patch-src_gs-job.c
blob: a14163913c10a88501b39502ddcfb2944a7e1cd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- src/gs-job.c.orig   Wed Sep  7 09:23:59 2005
+++ src/gs-job.c    Mon Sep 12 13:24:11 2005
@@ -29,7 +29,8 @@
 #include <sys/wait.h>
 #include <errno.h>
 
-#if defined(HAVE_SETPRIORITY) && defined(PRIO_PROCESS)
+#if defined(HAVE_SETPRIORITY)
+#include <sys/time.h>
 #include <sys/resource.h>
 #endif
 
@@ -375,6 +376,9 @@ load_themes (GSJob *job)
                         char           *title;
                         char          **argv;
 
+                        if (!g_str_has_suffix (file, ".xml"))
+                                continue;
+
                         path = g_build_filename (dir, file, NULL);
 
                         if (! parse_theme (path,
@@ -655,9 +659,11 @@ gs_job_set_widget  (GSJob     *job,
 static const char *known_locations [] = {
         SAVERDIR,
         LIBEXECDIR "/xscreensaver",
-        "/usr/X11R6/lib/xscreensaver",
+        "%%X11BASE%%/lib/xscreensaver",
         "/usr/libexec/xscreensaver",
         "/usr/lib/xscreensaver",
+        "%%X11BASE%%/bin/xscreensaver-hacks",
+        "%%X11BASE%%/bin",
         NULL
 };