From a529dc01305cc4b8be3abd520daa7f638a9528cf Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 22 May 2017 17:12:45 +0200 Subject: [PATCH] Fixed Supprocess array --- herbstluftwm/hl_start_urxvt_cwd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/herbstluftwm/hl_start_urxvt_cwd.py b/herbstluftwm/hl_start_urxvt_cwd.py index 5342a8c..2dbc4ea 100755 --- a/herbstluftwm/hl_start_urxvt_cwd.py +++ b/herbstluftwm/hl_start_urxvt_cwd.py @@ -25,7 +25,8 @@ if window==-1: ############ IF URXVT GET PID ########### pid = -1 -out = shexec('xprop -id '+hex(window)).split('\n') +out = subprocess.check_output(['xprop','-id',hex(window)]).decode().split('\n') +#out = shexec('xprop -id '+hex(window)).split('\n') #not working for l in out: if l.startswith('WM_CLASS(STRING)') and 'urxvt' in l: break;