aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xprint/etc/Xsession.d
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/Xprint/etc/Xsession.d')
-rw-r--r--nx-X11/programs/Xserver/Xprint/etc/Xsession.d/Imakefile24
-rw-r--r--nx-X11/programs/Xserver/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh30
2 files changed, 54 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/Xprint/etc/Xsession.d/Imakefile b/nx-X11/programs/Xserver/Xprint/etc/Xsession.d/Imakefile
new file mode 100644
index 000000000..55a07175e
--- /dev/null
+++ b/nx-X11/programs/Xserver/Xprint/etc/Xsession.d/Imakefile
@@ -0,0 +1,24 @@
+XCOMM $Xorg: Imakefile,v 1.1 2003/01/25 14:42:52 gisburn Exp $
+
+#if NothingOutsideProjectRoot
+#define EtcDir ProjectRoot/etc
+#else
+#define EtcDir /etc
+#endif
+
+ETCDIR = EtcDir
+
+all::
+
+XCOMM Install glue for Xprint on Solaris/CDE1.x and CDE on AIX
+#if (defined(SunArchitecture) && (OSMajorVersion > 4)) || defined(IBMArchitecture)
+InstallNamedProg(cde_xsessiond_xprint.sh,0018.xprint,/usr/dt/config/Xsession.d)
+#endif
+
+XCOMM Install xdm startup glue for Xprint on Linux. Note that not all Linux
+XCOMM platforms have /etc/X11/Xsession.d/ and/or /etc/X11/xinit/xinitrc.d
+XCOMM (see http://xprint.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=182)
+#if defined(LinuxDistribution)
+InstallNamedProg(cde_xsessiond_xprint.sh,92xprint-xpserverlist.sh,$(ETCDIR)/X11/Xsession.d)
+InstallNamedProg(cde_xsessiond_xprint.sh,92xprint-xpserverlist.sh,$(ETCDIR)/X11/xinit/xinitrc.d)
+#endif
diff --git a/nx-X11/programs/Xserver/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh b/nx-X11/programs/Xserver/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh
new file mode 100644
index 000000000..3fb6bba7c
--- /dev/null
+++ b/nx-X11/programs/Xserver/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#####################################################################
+### File: 0018.xprint
+###
+### Default Location: /usr/dt/config/Xsession.d/
+###
+### Purpose: Setup Xprint env vars
+###
+### Description: This script is invoked by means of the Xsession file
+### at user login.
+###
+### Invoked by: /usr/dt/bin/Xsession
+###
+### (c) Copyright 2003-2004 Roland Mainz <roland.mainz@nrubsig.org>
+###
+### please send bugfixes or comments to http://xprint.mozdev.org/
+###
+#####################################################################
+
+
+#
+# Obtain list of Xprint servers
+#
+
+if [ -f "/etc/init.d/xprint" ] ; then
+ XPSERVERLIST="`/bin/sh /etc/init.d/xprint get_xpserverlist`"
+ export XPSERVERLIST
+fi
+
+########################## eof #####################