hack fix to crash

This commit is contained in:
Hylke Bons 2010-05-04 22:06:16 +01:00
parent a63f441c6a
commit 74d7844b64
2 changed files with 1 additions and 58 deletions

View file

@ -24,4 +24,4 @@ uninstall:
rm ~/.config/autostart/sparkleshare.desktop
clean:
rm src/sparkleshare.exe
rm SparkleShare/bin/Debug/SparkleShare.exe

View file

@ -1,57 +0,0 @@
#!/bin/bash
# Create a directory to save the pid to
mkdir -p /tmp/sparkleshare/
if [[ "$1" == "start" ]]; then
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
echo "SparkleShare is already running."
else
echo -n "Starting SparkleShare..."
# Start SparkleShare in the background and save the pid
mono /usr/local/share/sparkleshare/SparkleShare.exe $2 &
PID=$!
echo $PID > /tmp/sparkleshare/sparkleshare.pid
echo " Done."
fi
fi
if [[ "$1" == "stop" ]]; then
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
echo -n "Stopping SparkleShare..."
kill `cat /tmp/sparkleshare/sparkleshare.pid`
rm -f /tmp/sparkleshare/sparkleshare.pid
echo " Done."
else
echo "SparkleShare isn't running."
fi
fi
if [[ "$1" == "restart" ]]; then
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
echo -n "Stopping SparkleShare..."
kill `cat /tmp/sparkleshare/sparkleshare.pid`
rm -f /tmp/sparkleshare/sparkleshare.pid
echo " Done."
else
echo "SparkleShare isn't running."
fi
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
echo "SparkleShare is already running."
else
echo -n "Starting SparkleShare..."
# Start SparkleShare in the background and save the pid
mono /usr/local/share/sparkleshare/SparkleShare.exe $2 &
PID=$!
echo $PID > /tmp/sparkleshare/sparkleshare.pid
echo " Done."
fi
fi
if [[ "$1" == "--help" ]]; then
mono /usr/local/share/sparkleshare/SparkleShare.exe --help
fi