/* dotfile.c --- management of the ~/.xscreensaver file.
- * xscreensaver, Copyright (c) 1998 Jamie Zawinski <jwz@jwz.org>
+ * xscreensaver, Copyright (c) 1998, 2003 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
if (realpath (file, buf))
return strdup (buf);
- sprintf (buf, "%s: realpath", blurb());
+ sprintf (buf, "%.100s: realpath %.200s", blurb(), file);
perror(buf);
}
# endif /* HAVE_REALPATH */
"timestamp",
"splash",
"splashDuration",
+ "quad",
"demoCommand",
"prefsCommand",
"helpURL",
"fadeTicks",
"captureStderr",
"captureStdout", /* not saved -- obsolete */
+ "ignoreUninstalledPrograms",
"font",
"dpmsEnabled",
"dpmsStandby",
CHECK("timestamp") type = pref_bool, b = p->timestamp_p;
CHECK("splash") type = pref_bool, b = p->splash_p;
CHECK("splashDuration") type = pref_time, t = p->splash_duration;
+ CHECK("quad") type = pref_bool, b = p->quad_p;
CHECK("demoCommand") type = pref_str, s = p->demo_command;
CHECK("prefsCommand") type = pref_str, s = p->prefs_command;
- CHECK("helpURL") type = pref_str, s = p->help_url;
- CHECK("loadURL") type = pref_str, s = p->load_url_command;
+/* CHECK("helpURL") type = pref_str, s = p->help_url; */
+ CHECK("helpURL") continue; /* don't save */
+/* CHECK("loadURL") type = pref_str, s = p->load_url_command; */
+ CHECK("loadURL") continue; /* don't save */
CHECK("nice") type = pref_int, i = p->nice_inferior;
CHECK("memoryLimit") type = pref_byte, i = p->inferior_memory_limit;
CHECK("fade") type = pref_bool, b = p->fade_p;
CHECK("fadeTicks") type = pref_int, i = p->fade_ticks;
CHECK("captureStderr") type = pref_bool, b = p->capture_stderr_p;
CHECK("captureStdout") continue; /* don't save */
+ CHECK("ignoreUninstalledPrograms")
+ type = pref_bool, b = p->ignore_uninstalled_p;
+
CHECK("font") type = pref_str, s = stderr_font;
CHECK("dpmsEnabled") type = pref_bool, b = p->dpms_enabled_p;
p->nice_inferior = get_integer_resource ("nice", "Nice");
p->inferior_memory_limit = get_byte_resource ("memoryLimit", "MemoryLimit");
p->splash_p = get_boolean_resource ("splash", "Boolean");
+ p->quad_p = get_boolean_resource ("quad", "Boolean");
p->capture_stderr_p = get_boolean_resource ("captureStderr", "Boolean");
+ p->ignore_uninstalled_p = get_boolean_resource ("ignoreUninstalledPrograms",
+ "Boolean");
p->initial_delay = 1000 * get_seconds_resource ("initialDelay", "Time");
p->splash_duration = 1000 * get_seconds_resource ("splashDuration", "Time");
s[0] -= 'a'-'A';
if (s[0] == 'X' && s[1] >= 'a' && s[1] <= 'z') /* (magic leading X) */
s[1] -= 'a'-'A';
+ if (s[0] == 'G' && s[1] == 'l' &&
+ s[2] >= 'a' && s[2] <= 'z') /* (magic leading GL) */
+ s[1] -= 'a'-'A',
+ s[2] -= 'a'-'A';
return s;
}