99feb898da
* 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.
20 lines
518 B
Bash
20 lines
518 B
Bash
#!/bin/sh
|
|
#
|
|
# $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 "$@"
|