fix GUI warns
This commit is contained in:
parent
462a747c5b
commit
a5eea96d5d
10
nohang
10
nohang
@ -146,8 +146,8 @@ def re_pid_environ(pid):
|
||||
continue
|
||||
|
||||
if i.startswith(dbus_env):
|
||||
if ',guid=' in i:
|
||||
return None
|
||||
#if ',guid=' in i:
|
||||
# return None
|
||||
dbus = i
|
||||
continue
|
||||
|
||||
@ -160,9 +160,9 @@ def re_pid_environ(pid):
|
||||
return env
|
||||
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
return None
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
return None
|
||||
|
||||
|
||||
def root_notify_env():
|
||||
@ -176,6 +176,8 @@ def root_notify_env():
|
||||
unsorted_envs_list.append(one_env)
|
||||
env = set(unsorted_envs_list)
|
||||
env.discard(None)
|
||||
for i in env:
|
||||
print(i)
|
||||
return env
|
||||
|
||||
|
||||
|
@ -296,5 +296,5 @@ print_mem_check_results = True
|
||||
Print sleep periods between memory checks.
|
||||
Valid values are True and False.
|
||||
|
||||
print_sleep_periods = True
|
||||
print_sleep_periods = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user