aboutsummaryrefslogtreecommitdiff
path: root/desktop/echinus
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-07 17:02:34 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:52:04 +0700
commit7fea0c6cca0ae2cca67f8506dcc672659958d2a1 (patch)
tree7713fcefa15788e93b92ead25863b0a0161fb23f /desktop/echinus
parent53700bd4f50f097852abd010c5201d482bbb1a8b (diff)
desktop/echinus: Add missing xinitrc.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/echinus')
-rw-r--r--desktop/echinus/echinus.SlackBuild15
-rw-r--r--desktop/echinus/xinitrc.echinus30
2 files changed, 37 insertions, 8 deletions
diff --git a/desktop/echinus/echinus.SlackBuild b/desktop/echinus/echinus.SlackBuild
index d112eb7e64dd..3b2375495a4a 100644
--- a/desktop/echinus/echinus.SlackBuild
+++ b/desktop/echinus/echinus.SlackBuild
@@ -1,9 +1,8 @@
#!/bin/bash
+# Slackware build script for echinus
-# Slackware build script for <appname>
-
-# Written by Charles E. Kauffman gahlgwogi@lycos.com
+# Written by Charles E. Kauffman <email removed>.
# Modified from Tom Canich's slackbuild for dwm.
# Modified by B. Watson
@@ -11,18 +10,21 @@
# had no license; modified version is licensed under the WTFPL.
# See http://www.wtfpl.net/txt/copying/ for details.
+# 20210907 bkw: BUILD=3, *actually* add the xinitrc. Nobody noticed
+# this build was broken for 1.5 years, so would anyone miss it if
+# it went away?
+
# 20200101 bkw:
# - take over maintenance
# - BUILD=2
# - add xinitrc
# - simplify build
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=echinus
VERSION=${VERSION:-0.4.9}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -34,9 +36,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
diff --git a/desktop/echinus/xinitrc.echinus b/desktop/echinus/xinitrc.echinus
new file mode 100644
index 000000000000..7827671dbbfd
--- /dev/null
+++ b/desktop/echinus/xinitrc.echinus
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+sysresources=/etc/X11/xinit/.Xresources
+sysmodmap=/etc/X11/xinit/.Xmodmap
+
+# merge in defaults and keymaps
+if [ -f $sysresources ]; then
+ xrdb -merge $sysresources
+fi
+
+if [ -f $sysmodmap ]; then
+ xmodmap $sysmodmap
+fi
+
+if [ -f $userresources ]; then
+ xrdb -merge $userresources
+fi
+
+if [ -f $usermodmap ]; then
+ xmodmap $usermodmap
+fi
+
+# Start the window manager:
+if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
+ exec ck-launch-session dbus-launch --exit-with-session /usr/bin/echinus
+else
+ exec dbus-launch --exit-with-session /usr/bin/echinus
+fi