Commit 00463b3 1 parent e540121 commit 00463b3 Copy full SHA for 00463b3
File tree 1 file changed +26
-17
lines changed
1 file changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,17 @@ def config_info_dialog():
76
76
battery_setup ()
77
77
conf .notifier .start ()
78
78
while True :
79
- footer ()
80
- gov_check ()
81
- cpufreqctl ()
82
- distro_info ()
83
- sysinfo ()
84
- set_autofreq ()
85
- countdown (2 )
79
+ try :
80
+ footer ()
81
+ gov_check ()
82
+ cpufreqctl ()
83
+ distro_info ()
84
+ sysinfo ()
85
+ set_autofreq ()
86
+ countdown (2 )
87
+ except KeyboardInterrupt :
88
+ break ;
89
+ conf .notifier .stop ()
86
90
elif monitor :
87
91
config_info_dialog ()
88
92
root_check ()
@@ -97,15 +101,19 @@ def config_info_dialog():
97
101
gnome_power_detect ()
98
102
tlp_service_detect ()
99
103
while True :
100
- time .sleep (1 )
101
- running_daemon_check ()
102
- footer ()
103
- gov_check ()
104
- cpufreqctl ()
105
- distro_info ()
106
- sysinfo ()
107
- mon_autofreq ()
108
- countdown (2 )
104
+ try :
105
+ time .sleep (1 )
106
+ running_daemon_check ()
107
+ footer ()
108
+ gov_check ()
109
+ cpufreqctl ()
110
+ distro_info ()
111
+ sysinfo ()
112
+ mon_autofreq ()
113
+ countdown (2 )
114
+ except KeyboardInterrupt :
115
+ break
116
+ conf .notifier .stop ()
109
117
elif live :
110
118
root_check ()
111
119
config_info_dialog ()
@@ -134,7 +142,8 @@ def config_info_dialog():
134
142
except KeyboardInterrupt :
135
143
gnome_power_start_live ()
136
144
print ("" )
137
- sys .exit ()
145
+ break
146
+ conf .notifier .stop ()
138
147
elif stats :
139
148
not_running_daemon_check ()
140
149
config_info_dialog ()
You can’t perform that action at this time.
0 commit comments