terminal for gedit don't cd to right directory ,I try to fix it !<br><br>--- terminal.py 2009-07-09 09:20:21.000000000 +0800<br>+++ terminal.py 2009-07-09 09:41:29.000000000 +0800<br>@@ -263,7 +263,9 @@<br> if uri is not None and gedit.utils.uri_has_file_scheme(uri):<br>
gfile = gio.File(uri)<br> directory = gfile.get_parent()<br>- return os.path.dirname(directory.get_path())<br>+ dirpath = directory.get_path()<br>+ if os.path.isdir(dirpath) :<br>
+ return dirpath<br> return None<br> <br> def on_panel_populate_popup(self, panel, menu):<br><br clear="all"><br>-- <br>Hi,I am weiketing !<br>