mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 23:21:34 +01:00
Fixed Supprocess array
This commit is contained in:
@@ -25,7 +25,8 @@ if window==-1:
|
|||||||
|
|
||||||
############ IF URXVT GET PID ###########
|
############ IF URXVT GET PID ###########
|
||||||
pid = -1
|
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:
|
for l in out:
|
||||||
if l.startswith('WM_CLASS(STRING)') and 'urxvt' in l:
|
if l.startswith('WM_CLASS(STRING)') and 'urxvt' in l:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user