blob: 58748761dd5eee45e25ddaf91903b39eb3e8dd5b (
plain)
1
2
3
4
5
6
7
8
9
10
|
import os
from leap.util.fileutil import which
def is_pkexec_in_system():
pkexec_path = which('pkexec')
if not pkexec_path:
return False
return os.access(pkexec_path, os.X_OK)
|