[BACK]Return to brogue-multiuser.sh CVS log [TXT][DIR] Up to [contributed] / brogue-ce / linux

File: [contributed] / brogue-ce / linux / brogue-multiuser.sh (download)

Revision 1.1.1.1 (vendor branch), Thu May 27 20:31:46 2021 UTC (2 years, 11 months ago) by rubenllorente
Branch: tmewett, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines

Initial Import from release 1.9.3

#!/bin/sh

# This is a sample script for running Brogue when installed to a system-wide
# directory, while keeping saves, recordings and highscores in user-specific
# locations. Modify as necessary and place as /usr/local/bin/brogue or
# elsewhere.
#
# ATTENTION: To use this, you must have built Brogue CE from source having set
# the DATADIR build option.

set -e

broguedir="/opt/brogue"  # where you set DATADIR to (copy the contents of 'bin' to here)
userdir="${XDG_DATA_HOME:-$HOME/.local/share}/Brogue"  # where you want user files to go

mkdir -p "$userdir"
cd "$userdir"
exec "$broguedir"/brogue