/*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
instead of opening a web browser to view the man page at jwz.org or
opening a gnome-terminal to run the man command.
Backport notes: this change relies on the gnome-help version delivered in
installed to be the older SUNWxscreensaver-*, and to not use the a href
markup links added in newer gtk versions, nor link to IPS .p5i files to
install the packages.
---
driver/Makefile.in | 9 ++++--
driver/XScreenSaver.ad.in | 14 +++++++---
driver/demo-Gtk.c | 4 +-
driver/subprocs.c | 54 +++++++++++++++++++++++++++++++++++++-
driver/xscreensaver-demo.glade2 | 8 +++--
driver/xscreensaver-text | 6 +++-
driver/xscreensaver.man | 5 +--
hacks/glx/Makefile.in | 4 +-
8 files changed, 84 insertions(+), 20 deletions(-)
@@ -27,7 +27,7 @@ INTLTOOL_MERGE = @INTLTOOL_MERGE@
GTK_DATADIR = @GTK_DATADIR@
GTK_APPDIR = $(GTK_DATADIR)/applications
GTK_ICONDIR = $(GTK_DATADIR)/pixmaps
-GTK_GLADEDIR = $(GTK_DATADIR)/xscreensaver/glade
+GTK_GLADEDIR = $(prefix)/lib/xscreensaver/config
HACK_CONF_DIR = @HACK_CONF_DIR@
CC = @CC@
@@ -36,8 +36,11 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
INTL_DEFS = -DLOCALEDIR=\"$(localedir)\"
-SUBP_DEFS = $(DEFS) -DDEFAULT_PATH_PREFIX='"@HACKDIR@"'
-GTK_DEFS = $(DEFS) -DDEFAULT_ICONDIR='"$(GTK_GLADEDIR)"'
+SUBP_DEFS = $(DEFS) -DHACK_PATH='"@HACKDIR@"' \
+ -DDEFAULT_PATH_PREFIX='"@HACKDIR@:$(libexecdir)"' \
+ -DHELPER_PATH='"$(libexecdir)"'
+GTK_DEFS = $(DEFS) -DDEFAULT_ICONDIR='"$(GTK_GLADEDIR)"' \
+ -DBINDIR='"$(bindir)"'
CONF_DEFS = -DHACK_CONFIGURATION_PATH='"$(HACK_CONF_DIR)"'
LIBS = @LIBS@
@@ -87,18 +87,24 @@ GetViewPortIsFullOfLies: False
! This is the URL loaded by the "Help" button on the splash screen,
! and by the "Documentation" menu item in xscreensaver-demo.
-*helpURL: http://www.jwz.org/xscreensaver/man.html
+*helpURL: man:xscreensaver
! manualCommand -- how the "Documentation" buttons display man pages.
!
! And there are so very many options to choose from!
!
+! Modern GNOME:
+!
+*loadURL: gnome-help '%s'
+!
!
!
! Gnome 2.2:
!
sleep (1);
await_xscreensaver (s);
if (init_results == 1)
{
- system ("xscreensaver -nosplash &");
return 0;
}
@@ -14,6 +14,7 @@
# include "config.h"
+#include <sys/stat.h>
+/* mali - security issue do not want to display user's path */
{
}
}
+#endif
}
return forked;
}
+static Bool
+{
+
+ int status;
+
+
+ {
+ return True;
+ }
+ else
+ {
+ if (verbose_p)
+ {
+ "%s: Warning: dir: %s missing. Will not run hacks\n",
+ }
+ return False;
+ }
+}
void
{
+ char* complete_hack_command;
+
+
if (!monitor_powered_on_p (si))
;
}
+ if ((new_hack >= 0) &&
+ {
+ new_hack = -1;
+ }
+
{
+ /* We need complete path to hack command else any executable
+ * with the same name in the path gets executed.
+ */
+
+
+
switch ((int) forked)
{
case -1: /* fork failed */
char *av[10];
int ac = 0;
diff --git xscreensaver-5.12/driver/xscreensaver-demo.glade2 xscreensaver-5.12/driver/xscreensaver-demo.glade2
+This probably means that the “<a href="file:/usr/lib/xscreensaver/config/xscreensaver-hacks.p5i">desktop/xscreensaver/hacks</a>,”
+“<a href="file:/usr/lib/xscreensaver/config/xscreensaver-hacks-gl.p5i">desktop/xscreensaver/hacks/hacks-gl</a>,” and
+“<a href="file:/usr/lib/xscreensaver/config/rss-glx.p5i">desktop/xscreensaver/hacks/rss-glx</a>” packages
$i++;
+
#
- reformat_html ("$title<P>$body1", 1);
+ reformat_html ("$title<BR>$author<P>$body1", 1);
print "\n";
}
}
@@ -97,9 +97,8 @@ xscreensaver-command -restart
If you want to set the system-wide defaults, then make your edits to
the xscreensaver app-defaults file, which should have been installed
when xscreensaver itself was installed. The app-defaults file will
-usually be named /usr/lib/X11/app-defaults/XScreenSaver, but different
-systems might keep it in a different place (for example,
-/usr/openwin/lib/app-defaults/XScreenSaver on Solaris.)
+usually be named /usr/share/X11/app-defaults/XScreenSaver, but different
+systems might keep it in a different place.
When settings are changed in the Preferences dialog box (see above)
the current settings will be written to the \fI.xscreensaver\fP file.
diff --git xscreensaver-5.12/hacks/glx/Makefile.in xscreensaver-5.12/hacks/glx/Makefile.in
@@ -270,7 +270,7 @@ install-program:: $(EXES)
# the xscreensaver-gl-helper program, in $bindir
install-program:: $(EXES)
@exes="@GL_UTIL_EXES@" ; \
- idir="$(install_prefix)$(bindir)" ; \
+ idir="$(install_prefix)$(libexecdir)" ; \
if [ "$$exes" != "" ]; then \
if [ ! -d $$idir ]; then \
$(INSTALL_DIRS) $$idir ; \
@@ -339,7 +339,7 @@ uninstall-program::
# the xscreensaver-gl-helper program, in $bindir
uninstall-program::
@exes="$(GL_UTIL_EXES)" ; \
- idir="$(install_prefix)$(bindir)" ; \
+ idir="$(install_prefix)$(libexecdir)" ; \
for program in $$exes; do \
echo rm -f $$idir/$$program ; \
rm -f $$idir/$$program ; \