From e97aa691530ce1fc0c2db068ea97e2b87efa9a42 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 2 Jul 2020 10:37:18 +0200 Subject: Set Pulseaudio properties See #3832 (cherry picked from commit 7d388163106b4efa07b13ee515e0534a43cd6510) --- qutebrowser/app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index c90de481e..3d82ff9d4 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -144,6 +144,7 @@ def init(*, args: argparse.Namespace) -> None: quitter.instance.shutting_down.connect(QApplication.closeAllWindows) _init_icon() + _init_pulseaudio() loader.init() loader.load_components() @@ -188,6 +189,12 @@ def _init_icon(): q_app.setWindowIcon(icon) +def _init_pulseaudio(): + """Set properties for PulseAudio.""" + for prop in ['application.name', 'application.icon_name']: + os.environ['PULSE_PROP_OVERRIDE_' + prop] = 'qutebrowser' + + def _process_args(args): """Open startpage etc. and process commandline args.""" if not args.override_restore: -- cgit v1.2.3-54-g00ecf