Revert "Moved from external 'notify-send' command to using notify2 library"
This reverts commit 6ccb04632b.
This commit is contained in:
@@ -18,13 +18,11 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
import os
|
||||
import socket
|
||||
import time
|
||||
import notify2
|
||||
from datetime import datetime, date, time
|
||||
|
||||
#variables
|
||||
programTitle = "Mail Notifier"
|
||||
programVersion = "3.01-dev"
|
||||
notify2.init(programTitle)
|
||||
programVersion = "3.01"
|
||||
settings = QSettings(os.path.expanduser("~")+"/.config/mail-notifier/settings.conf", QSettings.NativeFormat)
|
||||
def GlobalSettingsExist():
|
||||
if ((settings.contains("CheckInterval") and settings.value("CheckInterval") != "") and
|
||||
@@ -441,8 +439,7 @@ def mail_check():
|
||||
window.lastCheckCount = mail_count
|
||||
def notify(message):
|
||||
if settings.value("Notify"):
|
||||
n = notify2.Notification(programTitle, message)
|
||||
n.show()
|
||||
subprocess.Popen(['notify-send', programTitle, message])
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user