Changeset 4c8944440c82436fa740b18e66a68b0ee3429670

Show
Ignore:
Timestamp:
08/10/08 02:59:34 (3 years ago)
Author:
Gabriel Falcão <gabriel@…>
Children:
fa864158f7bbe5120d55ea64cce775c4ee25a78a
Parents:
51ef8cf314ec718f98a2bd061bb87e07e016ca83
git-committer:
Gabriel Falcão <gabriel@…> (08/10/08 02:59:34)
Message:

Guake opening new tabs in the same than the current one

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r51ef8cf r4c89444  
    44        * src/guake.py: on delete_tab(), pre-adding a new tab when all tabs get 
    55        closed, it improves the speed of new guake show request 
     6        * src/guake.py: Guake openning new terminals in the same directory than 
     7        current openned tab. 
    68 
    792008-08-07  Gabriel Falcão <gabriel@nacaolivre.org> 
  • src/guake.py

    r51ef8cf r4c89444  
    10821082 
    10831083        shell_name = self.client.get_string(GCONF_PATH+'general/default_shell') 
     1084 
     1085        if len(self.term_list): 
     1086            active_pagepos = self.notebook.get_current_page() 
     1087        else: 
     1088            active_pagepos = -1 
     1089 
    10841090        directory = os.path.expanduser('~') 
     1091        if active_pagepos >= 0: 
     1092            cwd = "/proc/%d/cwd" % self.pid_list[active_pagepos] 
     1093            if os.path.exists(cwd): 
     1094                directory = cwd 
     1095             
    10851096        pid = self.term_list[last_added].\ 
    10861097            fork_command(shell_name or "bash", directory=directory)