From 4f6084c9f2ec2fae28220b6c4182b24601f1a8e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Oct 2017 10:57:06 +0530 Subject: [PATCH] Use /proc/sef instead of /proc/getpid() --- kitty/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/constants.py b/kitty/constants.py index f15c2cf48..b046f1c88 100644 --- a/kitty/constants.py +++ b/kitty/constants.py @@ -79,7 +79,7 @@ if ctypes.sizeof(GLint) != 4: def get_glfw_lib_name(): try: - for line in open('/proc/{}/maps'.format(os.getpid())): + for line in open('/proc/self/maps'): lib = line.split()[-1] if '/libglfw.so' in lib: return lib