We want beep per event, reverting [6494]. Sorry, thought it was a bug.
Note that if works only if beep enabled in kernel conf
This commit is contained in:
		
							parent
							
								
									e66a8a3430
								
							
						
					
					
						commit
						10ba862ed4
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -418,8 +418,7 @@ def play_sound(event): | |||
| 	if not gajim.config.get('sounds_on'): | ||||
| 		return | ||||
| 	path_to_soundfile = gajim.config.get_per('soundevents', event, 'path') | ||||
| 	player = gajim.config.get('soundplayer') | ||||
| 	if player == 'beep': | ||||
| 	if path_to_soundfile == 'beep': | ||||
| 		print '\a' # make a speaker beep | ||||
| 		return | ||||
| 	if path_to_soundfile is None or not os.path.exists(path_to_soundfile): | ||||
|  | @ -431,8 +430,9 @@ def play_sound(event): | |||
| 		except: | ||||
| 			pass | ||||
| 	elif os.name == 'posix': | ||||
| 		if player == '': | ||||
| 		if gajim.config.get('soundplayer') == '': | ||||
| 			return | ||||
| 		player = gajim.config.get('soundplayer') | ||||
| 		# we add the path in "" so we have good parsing from shell | ||||
| 		path_to_soundfile = path_to_soundfile.replace('"', '\\"') # escape " | ||||
| 		command = player + ' "' + path_to_soundfile + '" &' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue