From 291540b601939ffa4a1b985159004420bf82b545 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 20 Feb 2021 14:11:14 +0000 Subject: 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 --- deluge/ui/gtk3/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit