Changeset 4c8944440c82436fa740b18e66a68b0ee3429670
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r51ef8cf
|
r4c89444
|
|
| 4 | 4 | * src/guake.py: on delete_tab(), pre-adding a new tab when all tabs get |
| 5 | 5 | 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. |
| 6 | 8 | |
| 7 | 9 | 2008-08-07 Gabriel Falcão <gabriel@nacaolivre.org> |
-
|
r51ef8cf
|
r4c89444
|
|
| 1082 | 1082 | |
| 1083 | 1083 | 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 | |
| 1084 | 1090 | 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 | |
| 1085 | 1096 | pid = self.term_list[last_added].\ |
| 1086 | 1097 | fork_command(shell_name or "bash", directory=directory) |