We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
by loooking carefully at the default settings.py I noticed a setting to enable growl notification.
so i added a few lines here and there to enable notification via pynotify (which uses libnotify)
This is not really an important feature ;-)
one can use PYNOTIFY = True in settings.py and install pynotify --- a/hydeengine/init.py +++ b/hydeengine/init.py @@ -25,6 +25,13 @@ from file_system import File, Folder from path_util import PathUtil from processor import Processor from siteinfo import SiteInfo +try: + import pynotify + if not pynotify.init('Hyde'): + PYNOTIFY = False + PYNOTIFY = True +except ImportError: + PYNOTIFY = False
class _HydeDefaults: @@ -248,6 +255,8 @@ class Generator(object): subprocess.call([settings.GROWL, "-n", "Hyde", "-t", title, "-m", message]) except: pass + if hasattr(settings, "PYNOTIFY") and settings.PYNOTIFY and PYNOTIFY: + pynotify.Notification(title, message, None).show() def pre_process(self, node): self.processor.pre_process(node)
None is for the icon as there is none for hyde ???
The text was updated successfully, but these errors were encountered:
Nice. Will add in the patch.
Hyde has an icon. I should probably add it to the Hyde repository ;)
Sorry, something went wrong.
No branches or pull requests
by loooking carefully at the default settings.py I noticed a setting to enable growl notification.
so i added a few lines here and there to enable notification via pynotify (which uses libnotify)
This is not really an important feature ;-)
one can use PYNOTIFY = True in settings.py and install pynotify
--- a/hydeengine/init.py
+++ b/hydeengine/init.py
@@ -25,6 +25,13 @@ from file_system import File, Folder
from path_util import PathUtil
from processor import Processor
from siteinfo import SiteInfo
+try:
+ import pynotify
+ if not pynotify.init('Hyde'):
+ PYNOTIFY = False
+ PYNOTIFY = True
+except ImportError:
+ PYNOTIFY = False
None is for the icon as there is none for hyde ???
The text was updated successfully, but these errors were encountered: