sime cleanup in sound client list. Fixes #7497

This commit is contained in:
Yann Leboulanger 2013-10-30 17:50:47 +01:00
parent 152ca3ca6e
commit 2f89228de8
1 changed files with 4 additions and 2 deletions

View File

@ -2941,11 +2941,13 @@ class Interface:
if gajim.config.get('soundplayer') == '':
# only on first time Gajim starts
commands = ('aplay', 'play', 'esdplay', 'artsplay', 'ossplay')
commands = ('aplay', 'play', 'ossplay')
for command in commands:
if helpers.is_in_path(command):
if command == 'aplay':
if command in ('aplay', 'play'):
command += ' -q'
elif command == 'ossplay':
command += ' -qq'
gajim.config.set('soundplayer', command)
break