summaryrefslogtreecommitdiff
path: root/sysutils/rox/files
diff options
context:
space:
mode:
authorcjep <cjep>2002-06-01 18:25:46 +0000
committercjep <cjep>2002-06-01 18:25:46 +0000
commit99da25cf719b02ca512837152a0b117fa7a4ea4a (patch)
treefa8acf030112dad0a64855c1efd1487f60fd22b7 /sysutils/rox/files
parent41976288f01053c1bd866db82179fb72f5e7492c (diff)
downloadpkgsrc-99da25cf719b02ca512837152a0b117fa7a4ea4a.tar.gz
Various nit-fixes:
* When running rox, the user needs rw access to the CHOICESPATH. The rox startup script assists by making a directory of defaults in the user's home directory and setting CHOICESPATH if it unset. This fixes bug noted by Rui-Xiang Guo in a private e-mail. * rox-base now owns the share/rox and libexec/rox directories. * the installation is handled slightly better (e.g. now make deinstall && make install will work). * Bump to nb2.
Diffstat (limited to 'sysutils/rox/files')
-rw-r--r--sysutils/rox/files/rox20
1 files changed, 19 insertions, 1 deletions
diff --git a/sysutils/rox/files/rox b/sysutils/rox/files/rox
index 2e9c9ed967a..0f98caf6fe2 100644
--- a/sysutils/rox/files/rox
+++ b/sysutils/rox/files/rox
@@ -1,2 +1,20 @@
#!/bin/sh
-exec APPDIR/ROX-Filer/AppRun "$@"
+#
+# $NetBSD: rox,v 1.2 2002/06/01 18:25:46 cjep Exp $
+#
+
+# The user's Choices directory
+ROX_CHOICES_DIR="$HOME/.RoxChoices"
+
+#
+# If CHOICESPATH is not set, then check to see whether the user has
+# a $ROX_CHOICES_DIR directory. If they haven't, set one up.
+#
+if [ -z "$CHOICESPATH" ]; then
+ [ ! -d "$ROX_CHOICES_DIR" ] && \
+ cp -R @PREFIX@/share/rox/Choices "$ROX_CHOICES_DIR";
+ export CHOICESPATH="$ROX_CHOICES_DIR";
+fi
+
+# Run the ROX-Filer application
+exec @PREFIX@/share/rox/ROX-Filer/AppRun "$@"