diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2021-02-20 14:11:14 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-02-20 14:11:14 +0000 |
commit | 291540b601939ffa4a1b985159004420bf82b545 (patch) | |
tree | 5c1601b82c6ec2a5ab3a1b62298df053dcdcf5dc | |
parent | 092d07b68e48fb8480cb068bc6558ba3b269fb95 (diff) | |
download | deluge-291540b601939ffa4a1b985159004420bf82b545.tar.gz deluge-291540b601939ffa4a1b985159004420bf82b545.tar.bz2 deluge-291540b601939ffa4a1b985159004420bf82b545.zip |
Hide pygame community banner in console
Notifications plugin uses pygame for sound notifications however pygame
show a console message "Hello from the pygame community." whenever
starting deluge from console.
Refs: https://stackoverflow.com/a/55769463/175584
-rw-r--r-- | deluge/ui/gtk3/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deluge/ui/gtk3/__init__.py b/deluge/ui/gtk3/__init__.py index 1d9b5b89d..8e8b19613 100644 --- a/deluge/ui/gtk3/__init__.py +++ b/deluge/ui/gtk3/__init__.py @@ -10,10 +10,13 @@ from __future__ import unicode_literals import logging +from os import environ from deluge.ui.ui import UI log = logging.getLogger(__name__) +# Hide pygame community banner +environ['PYGAME_HIDE_SUPPORT_PROMPT'] = '1' # Keep this class in __init__.py to avoid the console having to import everything in gtkui.py |