if sound is beep then we beep in speaker
This commit is contained in:
parent
ad3d571429
commit
74cc23031c
|
@ -267,6 +267,9 @@ def play_sound(event):
|
||||||
if not gajim.config.get('sounds_on'):
|
if not gajim.config.get('sounds_on'):
|
||||||
return
|
return
|
||||||
path_to_soundfile = gajim.config.get_per('soundevents', event, 'path')
|
path_to_soundfile = gajim.config.get_per('soundevents', event, 'path')
|
||||||
|
if path_to_soundfile == 'beep':
|
||||||
|
print '\a' # make a speaker beep
|
||||||
|
return
|
||||||
if not os.path.exists(path_to_soundfile):
|
if not os.path.exists(path_to_soundfile):
|
||||||
return
|
return
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
|
|
Loading…
Reference in New Issue