Menu

g3torrent-tweakedv03 standalone executable

LeoXV
2004-11-26
2013-04-03
  • LeoXV

    LeoXV - 2004-11-26
     
    • LeoXV

      LeoXV - 2004-11-27

      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:

       
    • LeoXV

      LeoXV - 2004-11-27

      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.