From 9c550783190f4b0545fbee0215009df73afb4182 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 22 May 2008 19:54:48 +0100 Subject: [PATCH] Add more debugging and fix the platform detection for Linux --- terminator | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/terminator b/terminator index 4cfac96b..3b37b4e5 100755 --- a/terminator +++ b/terminator @@ -50,10 +50,15 @@ if platform.system() == 'FreeBSD': try: from terminatorlib import freebsd pid_get_cwd = lambda pid: freebsd.get_process_cwd(pid) + dbg ('Using FreeBSD pid_get_cwd') except: + dbg ('FreeBSD version too old for pid_get_cwd') pass -elif platform.system == 'Linux': +elif platform.system() == 'Linux': + dbg ('Using Linux pid_get_cwd') pid_get_cwd = lambda pid: os.path.realpath ('/proc/%s/cwd' % pid) +else: + dbg ('Unable to set a pid_get_cwd, unknown system: %s'%platform.system) # import gtk libs # check just in case anyone runs it on a non-gnome system.