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
This commit is contained in:
Calum Lind 2021-02-20 14:11:14 +00:00
parent 092d07b68e
commit 291540b601
1 changed files with 3 additions and 0 deletions

View File

@ -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