# ]
# Path to a prepared chroot jail.
-chroot_path = "/opt/nethack/nethack.alt.org/"
+chroot_path = "(:chroot:)"
# From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc
-dglroot = "/dgldir/"
+dglroot = "(:var:)/"
# Strings to be replaced in every banner
# you can have either direct string replacements, like
# - $VERSION replaced with "dgamelaunch v" + dgl version number.
# - $USERNAME replaced with logged-in user's name, or with "[Anonymous]"
# - $INCLUDE(filename) the named file will be inserted here.
-banner = "/dgl-banner"
+banner = "(:menudir:)/dgl-banner"
# The following two options are fairly insecure. They will force us to
# load the password/group database into memory while still having root
# First, the menu shown to anonymous user:
menu["mainmenu_anon"] {
- bannerfile = "dgl_menu_main_anon.txt"
+ bannerfile = "(:menudir:)/dgl_menu_main_anon.txt"
cursor = (5,18)
commands["l"] = ask_login
commands["r"] = ask_register
# "r" (reverse) or "d" (dim),
# or both color number and attribute characters, separated by colon.
# Empty param resets color and attributes to default.
- bannerfile = "dgl_menu_main_user.txt"
+ bannerfile = "(:menudir:)dgl_menu_main_user.txt"
# after which cursor is moved to this location
# if cursor-definition is missing, the cursor is put
# to the end of the last line of the banner.
commands["c"] = chpasswd
commands["e"] = chmail
commands["w"] = watch_menu
- commands["o"] = ifnxcp "/dgl-default-rcfile.nh343" "%ruserdata/%n/%n.nh343rc",
+ commands["o"] = ifnxcp "(:etc:)/dgl-default-rcfile.nh343" "%ruserdata/%n/%n.nh343rc",
exec "/bin/virus" "%ruserdata/%n/%n.nh343rc"
commands["p"] = play_game "NH343"
commands["q"] = quit
# this menu is shown when user presses '?' in the watching menu
menu["watchmenu_help"] {
- bannerfile = "dgl_menu_watchmenu_help.txt"
+ bannerfile = "(:menudir:)dgl_menu_watchmenu_help.txt"
commands["qQ "] = return
}
game_args = "/nh343/nethack", "-u", "%n"
spooldir = "/mail/"
- rc_template = "/dgl-default-rcfile.nh343"
+ rc_template = "(:etc:)/dgl-default-rcfile.nh343"
rc_fmt = "%ruserdata/%n/%n.nh343rc"
# back up savefile
- commands = cp "/nh343/var/save/%u%n.gz" "/nh343/var/save/%u%n.gz.bak",
+ commands = cp "(:playground:)/save/%u%n.gz" "(:playground:)/save/%u%n.gz.bak",
# set NETHACKOPTIONS to point to the rcfile
setenv "NETHACKOPTIONS" "@%ruserdata/%n/%n.nh343rc",
# set up nethack mail stuff, assuming it's compiled with it...