summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-01-06 00:01:21 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-01-06 00:02:02 +0100
commitebbca7e314ef3fcea7fbae534c4b494369bae1be (patch)
tree66bb4e24b52762fc3b1d5cd1bc3d6c80d67a20b9 /plugins
parent741ea614546f8d4bd276c93821410a8852a36675 (diff)
downloadpoezio-ebbca7e314ef3fcea7fbae534c4b494369bae1be.tar.gz
poezio-ebbca7e314ef3fcea7fbae534c4b494369bae1be.tar.bz2
poezio-ebbca7e314ef3fcea7fbae534c4b494369bae1be.tar.xz
poezio-ebbca7e314ef3fcea7fbae534c4b494369bae1be.zip
Fix little “typos” in the screen_detach plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/screen_detach.py4
1 files changed, 2 insertions, 2 deletions
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)