diff options
Diffstat (limited to 'net-p2p/tribler/files/patch-tribler')
-rw-r--r-- | net-p2p/tribler/files/patch-tribler | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-p2p/tribler/files/patch-tribler b/net-p2p/tribler/files/patch-tribler new file mode 100644 index 000000000000..4672f45f20ee --- /dev/null +++ b/net-p2p/tribler/files/patch-tribler @@ -0,0 +1,18 @@ +--- ../usr/bin/tribler.orig 2012-02-08 00:33:48.000000000 +0900 ++++ ../usr/bin/tribler 2012-02-24 18:46:06.000000000 +0900 +@@ -1,10 +1,12 @@ + #!/bin/sh +-# Startup script for Ubuntu Linux ++# Startup script for %%OPSYS%% + +-_TRIBLERPATH="/usr/share/tribler" ++_TRIBLERPATH="%%PYTHON_SITELIBDIR%%" + + export PYTHONPATH="$PYTHONPATH":$_TRIBLERPATH + + echo "Starting Tribler..." ++STATEDIR="$HOME/.Tribler" ++[ ! -d $STATEDIR ] && mkdir -p $STATEDIR + cd $_TRIBLERPATH +-exec python -O Tribler/Main/tribler.py "$@" > /tmp/$USER-tribler.log 2>&1 ++exec %%PYTHON_VERSION%% -O Tribler/Main/tribler.py "$@" > $STATEDIR/tribler.log 2>&1 |