8000 use checkCommand · Develop-Python/backintime@012d978 · GitHub
[go: up one dir, main page]

Skip to content

Commit 012d978

Browse files
committed
use checkCommand
1 parent 8ae5562 commit 012d978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def checkXServer():
449449
Returns:
450450
bool: ``True`` if X11 server is running
451451
"""
452-
if which('xdpyinfo') is not None:
452+
if checkCommand('xdpyinfo'):
453453
proc = subprocess.Popen(['xdpyinfo'],
454454
stdout = subprocess.DEVNULL,
455455
stderr = subprocess.DEVNULL)

0 commit comments

Comments
 (0)
0