From 37dca8c138fc6c74ff162013db8205d7a0942da4 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Fri, 29 Mar 2019 14:37:13 +0900 Subject: [PATCH] fixes --- nohang | 5 ++++- nohang.conf | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nohang b/nohang index 2fce26d..4499509 100755 --- a/nohang +++ b/nohang @@ -43,7 +43,10 @@ else: root = False -notify_helper_path = './nohang_notify_helper' +if os.path.exists('./nohang_notify_helper'): + notify_helper_path = './nohang_notify_helper' +else: + notify_helper_path = '/usr/sbin/nohang_notify_helper' victim_dict = dict() diff --git a/nohang.conf b/nohang.conf index 9542f1c..5db86ee 100644 --- a/nohang.conf +++ b/nohang.conf @@ -319,12 +319,12 @@ $ETC apache2 /// systemctl restart apache2 See also wiki.archlinux.org/index.php/Desktop_notifications Valid values are True and False. -gui_notifications = True +gui_notifications = False Enable GUI notifications about the low level of available memory. Valid values are True and False. -gui_low_memory_warnings = True +gui_low_memory_warnings = False Execute the command instead of sending GUI notifications if the value is not empty line. For example: @@ -388,7 +388,7 @@ print_total_stat = True Печатать таблицу процессов перед каждым корректирующим действием. -print_proc_table = True +print_proc_table = False print_victim_info = True