http://www.kolumbus.fi/jukka.lehtomaki/gentoo/who-is-your-buddy/g3torrent-tweakedv03.tar.gz
This is a beta Linux version..
The quick fix solution :P
def startfile(url): import sys, os if sys.platform == 'linux2': pathname = os.path.dirname(sys.argv[0]) if url == 'incoming': os.system('konqueror ' + os.path.abspath(pathname) +'/' + url + '/ &' ) else: os.system('konqueror ' + url + '/ &' )
class BTSession:
L33T coder ;)
def startfile(url): import sys, os if sys.platform == 'linux2': pathname = os.path.dirname(sys.argv[0]) browser = os.system('echo $BROWSER') flag = "" if browser == 'konqueror': flag = '--silent' elif browser == 'nautilus': flag = '--no-default-window' elif browser == 'firefox': flag = '-contentLocale' elif browser == 'mozilla': flag = '-contentLocale'
if url == 'incoming': os.system('$BROWSER' + ' ' + flag + ' ' + os.path.abspath(pathname) +'/' + url + '/ &' ) else: os.system('$BROWSER' + ' ' + flag + ' ' + url + '/ &' )
Log in to post a comment.
http://www.kolumbus.fi/jukka.lehtomaki/gentoo/who-is-your-buddy/g3torrent-tweakedv03.tar.gz
This is a beta Linux version..
The quick fix solution :P
def startfile(url):
import sys, os
if sys.platform == 'linux2':
pathname = os.path.dirname(sys.argv[0])
if url == 'incoming':
os.system('konqueror ' + os.path.abspath(pathname) +'/' + url + '/ &' )
else:
os.system('konqueror ' + url + '/ &' )
class BTSession:
L33T coder ;)
def startfile(url):
import sys, os
if sys.platform == 'linux2':
pathname = os.path.dirname(sys.argv[0])
browser = os.system('echo $BROWSER')
flag = ""
if browser == 'konqueror':
flag = '--silent'
elif browser == 'nautilus':
flag = '--no-default-window'
elif browser == 'firefox':
flag = '-contentLocale'
elif browser == 'mozilla':
flag = '-contentLocale'
if url == 'incoming':
os.system('$BROWSER' + ' ' + flag + ' ' + os.path.abspath(pathname) +'/' + url + '/ &' )
else:
os.system('$BROWSER' + ' ' + flag + ' ' + url + '/ &' )