From ebbca7e314ef3fcea7fbae534c4b494369bae1be Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 6 Jan 2015 00:01:21 +0100 Subject: =?UTF-8?q?Fix=20little=20=E2=80=9Ctypos=E2=80=9D=20in=20the=20scr?= =?UTF-8?q?een=5Fdetach=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/screen_detach.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/screen_detach.py b/plugins/screen_detach.py index 96339e9b..513e19c6 100644 --- a/plugins/screen_detach.py +++ b/plugins/screen_detach.py @@ -43,7 +43,7 @@ except Exception: LOGIN = os.getenv('USER') LOGIN_TMUX = os.getuid() -SCREEN_DIR = '/var/run/screen/S-%s' % LOGIN +SCREEN_DIR = '/var/run/screens/S-%s' % LOGIN TMUX_DIR = '/tmp/tmux-%s' % LOGIN_TMUX def find_screen(path): @@ -63,7 +63,7 @@ class Plugin(BasePlugin, pyinotify.Notifier): sock_path = None if self.config.get('use_tmux'): sock_path = find_screen(TMUX_DIR) - if sock_path is None and config.get('use_screen'): + if sock_path is None and self.config.get('use_screen'): sock_path = find_screen(SCREEN_DIR) # Only actually do something if we found an attached screen (assuming only one) -- cgit v1.2.3