diff options
Diffstat (limited to 'abs/core/LinHES-system/msg_daemon.py')
-rwxr-xr-x | abs/core/LinHES-system/msg_daemon.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/abs/core/LinHES-system/msg_daemon.py b/abs/core/LinHES-system/msg_daemon.py index 0e54824..8601075 100755 --- a/abs/core/LinHES-system/msg_daemon.py +++ b/abs/core/LinHES-system/msg_daemon.py @@ -243,20 +243,21 @@ class msg_queue_runner(threading.Thread): self.out_xosd = msg_xosd() def get_current_style(self): - style = "default" + style = "enhanced" if os.path.exists('/etc/X11/WINDOWMANAGER'): command = ['bash', '-c', 'source /etc/X11/WINDOWMANAGER && echo $STARTUP_STYLE'] proc = subprocess.Popen(command, stdout = subprocess.PIPE) - + #default for line in proc.stdout: if line.strip() == "": - style = "default" + style = "enhanced" else: style = line.strip() break proc.communicate() else: - style = "default" + #default + style = "enhanced" return style @@ -265,7 +266,7 @@ class msg_queue_runner(threading.Thread): #print "Killing current display" if style == "enhanced": self.p.terminate() - elif style == "default": + elif style == "legacy": #self.p.terminate() self.out_xosd.kill() @@ -284,7 +285,7 @@ class msg_queue_runner(threading.Thread): self.p = multiprocessing.Process(target=self.out_msg.display, args=(msgtext,display_time)) self.p.start() self.p.join() - elif style == "default": + elif style == "legacy": #display_time = int(msgdict['timeout']) self.out_xosd.display(msgtext,display_time) |