Set Pulseaudio properties
See #3832
(cherry picked from commit 7d38816310)
This commit is contained in:
parent
4b7e032697
commit
e97aa69153
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue