Alex777
Still Fresh
- Joined
 - Sep 2, 2008
 
- Messages
 - 95
 
I've put together a .pnd for Dungeon Crawl, but I've noticed that all of its contents to /mnt/utmp!  This is in addition to putting saves, settings, etc. in the appdata folder like it should.  It does this every time I run it, even if I quit immediately.
It uses the following script to run:
	
	
	
		
I end up with a stone_soup folder (that's the same name as the appdata folder) in /mnt/utmp, which contains everything in appdata, plus the components of the .pnd itself -- bin/, PXML.xml, and even the icon.
I know very little about shell scripting, have I made some terrible mistake here?
				
			It uses the following script to run:
		Code:
	
	#!/bin/sh
#Taken from the PND cookbook on PandoraWiki
export HOME='pwd'
export HOME=$(pwd)
#Copy the settings, docs, etc. to appdata if they aren't already there
if [ ! -e ./settings/init.txt ] ; then
  cp -r template/* $HOME
fi
exec terminal --fullscreen --hide-menubar --hide-toolbars --maximize -e "./bin/crawl -rc ./settings/init.txt" $*
	I end up with a stone_soup folder (that's the same name as the appdata folder) in /mnt/utmp, which contains everything in appdata, plus the components of the .pnd itself -- bin/, PXML.xml, and even the icon.
I know very little about shell scripting, have I made some terrible mistake here?
	