#!/bin/dash

### conf
PINBOARD_FILE=$HOME/.config/rox.sourceforge.net/ROX-Filer/PuppyPin

### main
cd $HOME
if [ -f /usr/bin/rox-debug ]; then
	killall ROX-Filer
	mkdir -p /tmp/rox
	rox "$@" -n -p $PINBOARD_FILE >> /tmp/rox/debug-$USER.$XSESSION_ID.log 2>&1 & # DEBUG ROX
else
	killall ROX-Filer
	rox "$@" -p $PINBOARD_FILE > /dev/null 2>&1
fi
