mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-24 09:32:20 +03:00
bugfix: get display number
This commit is contained in:
parent
718999e4ef
commit
449efec8f6
1 changed files with 2 additions and 1 deletions
|
@ -406,7 +406,7 @@ class Util:
|
|||
|
||||
@staticmethod
|
||||
def get_username_display():
|
||||
result_code, p_out, p_err = Util.execute("who | awk '{print $1, $5}' | sed 's/(//' | sed 's/)//'", result=True)
|
||||
result_code, p_out, p_err = Util.execute("who | awk '{print $1, $5}' | sed 's/(://' | sed 's/)//'", result=True)
|
||||
|
||||
result = []
|
||||
lines = str(p_out).split('\n')
|
||||
|
@ -417,5 +417,6 @@ class Util:
|
|||
|
||||
params = str(result[0]).split(' ')
|
||||
display_number = params[1]
|
||||
display_number = ":"+str(display_number)
|
||||
return display_number
|
||||
|
||||
|
|
Loading…
Reference in a new issue