90ff67a746
While I'm here: - Make sure to link to libevent2 - build was failing when both versions of libevent libraries were installed - Add dependency on multimedia/vlc to have videoplayer feature working PR: ports/172249 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
18 lines
629 B
Text
18 lines
629 B
Text
--- ../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%%/tribler"
|
|
|
|
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
|