fix crashes due to incomplete renaming
This commit is contained in:
parent
ef235a14e6
commit
f15f69d7a9
|
@ -53,7 +53,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Process.StartInfo.FileName = "gvfs-set-attribute";
|
Process.StartInfo.FileName = "gvfs-set-attribute";
|
||||||
Process.StartInfo.Arguments = ReposPath + " metadata::custom-icon " +
|
Process.StartInfo.Arguments = ReposPath + " metadata::custom-icon " +
|
||||||
"folder-sparkleshare";
|
"file://usr/share/icons/hicolor/48x48/places/folder-sparkleshare";
|
||||||
Process.Start();
|
Process.Start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
48
sparkleshare
48
sparkleshare
|
@ -1,57 +1,57 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Create a directory to save the pid to
|
# Create a directory to save the pid to
|
||||||
mkdir -p /tmp/sparklepony/
|
mkdir -p /tmp/sparkleshare/
|
||||||
|
|
||||||
if [[ "$1" == "start" ]]; then
|
if [[ "$1" == "start" ]]; then
|
||||||
if [ -e "/tmp/sparklepony/sparklepony.pid" ]; then
|
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
|
||||||
echo "SparklePony is already running."
|
echo "SparkleShare is already running."
|
||||||
else
|
else
|
||||||
echo -n "Starting SparklePony..."
|
echo -n "Starting SparkleShare..."
|
||||||
|
|
||||||
# Start SparklePony in the background and save the pid
|
# Start SparkleShare in the background and save the pid
|
||||||
mono /usr/local/share/sparklepony/SparklePony.exe $2 &
|
mono /usr/local/share/sparkleshare/SparkleShare.exe $2 &
|
||||||
PID=$!
|
PID=$!
|
||||||
echo $PID > /tmp/sparklepony/sparklepony.pid
|
echo $PID > /tmp/sparkleshare/sparkleshare.pid
|
||||||
echo " Done."
|
echo " Done."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "stop" ]]; then
|
if [[ "$1" == "stop" ]]; then
|
||||||
if [ -e "/tmp/sparklepony/sparklepony.pid" ]; then
|
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
|
||||||
echo -n "Stopping SparklePony..."
|
echo -n "Stopping SparkleShare..."
|
||||||
kill `cat /tmp/sparklepony/sparklepony.pid`
|
kill `cat /tmp/sparkleshare/sparkleshare.pid`
|
||||||
rm -f /tmp/sparklepony/sparklepony.pid
|
rm -f /tmp/sparkleshare/sparkleshare.pid
|
||||||
echo " Done."
|
echo " Done."
|
||||||
else
|
else
|
||||||
echo "SparklePony isn't running."
|
echo "SparkleShare isn't running."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "restart" ]]; then
|
if [[ "$1" == "restart" ]]; then
|
||||||
if [ -e "/tmp/sparklepony/sparklepony.pid" ]; then
|
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
|
||||||
echo -n "Stopping SparklePony..."
|
echo -n "Stopping SparkleShare..."
|
||||||
kill `cat /tmp/sparklepony/sparklepony.pid`
|
kill `cat /tmp/sparkleshare/sparkleshare.pid`
|
||||||
rm -f /tmp/sparklepony/sparklepony.pid
|
rm -f /tmp/sparkleshare/sparkleshare.pid
|
||||||
echo " Done."
|
echo " Done."
|
||||||
else
|
else
|
||||||
echo "SparklePony isn't running."
|
echo "SparkleShare isn't running."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "/tmp/sparklepony/sparklepony.pid" ]; then
|
if [ -e "/tmp/sparkleshare/sparkleshare.pid" ]; then
|
||||||
echo "SparklePony is already running."
|
echo "SparkleShare is already running."
|
||||||
else
|
else
|
||||||
echo -n "Starting SparklePony..."
|
echo -n "Starting SparkleShare..."
|
||||||
|
|
||||||
# Start SparklePony in the background and save the pid
|
# Start SparkleShare in the background and save the pid
|
||||||
mono /usr/local/share/sparklepony/SparklePony.exe $2 &
|
mono /usr/local/share/sparkleshare/SparkleShare.exe $2 &
|
||||||
PID=$!
|
PID=$!
|
||||||
echo $PID > /tmp/sparklepony/sparklepony.pid
|
echo $PID > /tmp/sparkleshare/sparkleshare.pid
|
||||||
echo " Done."
|
echo " Done."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ "$1" == "--help" ]]; then
|
if [[ "$1" == "--help" ]]; then
|
||||||
mono /usr/local/share/sparklepony/SparklePony.exe --help
|
mono /usr/local/share/sparkleshare/SparkleShare.exe --help
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue