Thread: Dialcentral 1.0
View Single Post
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#191
Originally Posted by st5150 View Post
What's the proper syntax?

notifier = /home/user/sms.sh doesn't seem to work where sms.sh (for now) contains one line: /usr/bin/mplayer /usr/share/sounds/sms.mp3
It might not know what interpreter to use with your script. Try
Code:
notifier = sh /home/user/sms.sh
or make your file
Code:
#!/usr/sh
/usr/bin/mplayer /usr/share/sounds/sms.mp3
EDIT: As a warning, you might not get the effect you want once this works. The notifier script is also responsible for choosing when to notify. I recommend making a hybrid of /usr/share/dialcentral/alarm_notify.py and gv_notifiy's sounds code.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog

Last edited by epage; 2009-08-20 at 02:26. Reason: gogol noticed I missed the #!, added it. st5150 pointed out i had the wrong path to "sh"