Hello,
I have a problem with the mailer desklet. I want to use the
"beeper" but I don't understand what's happening.
Here is what I put in the file beep.sh :
#!/bin/sh
#
play question.wav
When I launch in a console ./beep.sh, the sound is played,
and it is marked "playing question.wav". Unfortunately, when
I receive new messages, nothing occurs. I wonder whether
script is well launched by the desklet mailer... but how to
check it??
Here is a part of the source of the desklet where script is
launched:
def alarm(self):
"""
Refresh the display as needed
"""
self.block()
mail = self.mailer()
self._display()
if mail > self.mailer.last_size and mail>0:
if self.config['program_on_new']:
self._execute(join(self.basedir,
self.config['program_on_new']))
self.unblock()
and the function _ execute() is defined as follows:
def _execute(self,command):
spawnlp(P_NOWAIT, command.split()[0], *command.split())
Does somebody have an idea to make play this sound ?
thank you in advance :wink: