send display parameter to unregister_message

This commit is contained in:
Tuncay ÇOLAK 2019-09-16 14:09:30 +03:00
parent 88018a32ac
commit 18149fc4d2

View file

@ -389,11 +389,7 @@ class Util:
ask_path = Util.get_ask_path_file()+ 'unregistrationmessage.py' ask_path = Util.get_ask_path_file()+ 'unregistrationmessage.py'
command = 'export DISPLAY={0}; su - {1} -c \"python3 {2} \'{3}\' \'{4}\' \"'.format(display_number, command = 'su - {0} -c \"python3 {1} \'{2}\' \'{3}\' \'{4}\' \"'.format(login_user_name, ask_path, message, title, display_number)
login_user_name,
ask_path,
message, title
)
result_code, p_out, p_err = Util.execute(command) result_code, p_out, p_err = Util.execute(command)
pout = str(p_out).replace('\n', '') pout = str(p_out).replace('\n', '')