Changeset 135

Show
Ignore:
Timestamp:
Fri Nov 24 12:51:38 2006
Author:
manatlan
Message:

- online help desn't freeze the jbrout process anymore (on linux)

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/common.py

    r113 r135  
    45 45  
    46 46  
    47   from subprocess import call  
    48   def runWith(l,file):  
      47 from subprocess import call,Popen  
      48 def runWith(l,file,wait=True):  
    49 49     """ try command in the list 'l' with the file 'file' """  
    50 50     assert type(file)==unicode  
    51 51     for c in l:  
    52 52         try:  
    53               p = call([c,file])  
      53             if wait:  
      54                 p = call([c,file])  
      55             else:  
      56                 Popen([c,file])  
    54 57         except OSError:  
    55 58             pass  
     
    63 66     #~ print JBrout.conf["jo"]  
    64 67     #~ JBrout.conf.save()  
      68     runWith(["StaRT","geany"],u"toto",False)  
    65 69     pass  
  • trunk/jbrout.py

    r134 r135  
    1040 1040             store.expander(self.tvFilteredAlbums)  
    1041 1041  
    1042       def on_help_activate(self,*args):  
    1043           # "START" is the command start on win32 to run a program or url  
    1044           # it's in uppercase because on linux, there is "start" too  
    1045           runWith(["STARt","mozilla-firefox","firefox","konqueror","epiphany","galeon"],u"http://jbrout.free.fr/aide/")  
    1046 1042  
    1047 1043     ###################################################################################  
     
    1766 1762  
    1767 1763  
      1764     def on_help_activate(self,*args):  
      1765         # "START" is the command start on win32 to run a program or url  
      1766         # it's in uppercase because on linux, there is "start" too  
      1767         runWith(["STARt","gnome-open","mozilla-firefox","firefox","konqueror","epiphany","galeon"],u"http://jbrout.free.fr/aide/",False)  
    1768 1768  
    1769 1769     def on_a_propos_activate(self, widget, *args):