Notices


Reply
Thread Tools
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#1
Can anyone tell me what command I can enter, if the is such a command to see what commands the system is running, specifically when a new email arrives, the command that plays the sounds, I want to track it down so I can try to make it play the only once, not twice as it always has been. Anyone got any ideas?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
gogol's Avatar
Posts: 177 | Thanked: 57 times | Joined on Aug 2007 @ Washington State, USA
#2
ps or top ?
__________________
~Nokia n810 OS Diablo 5.2008.43-7~ my (old 770) hax: http://770hax.today.com
 
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#3
I have no idea, I just want to ultimately track down the command that makes the email sound play so I can find what ever kind of configuration file or whatever it might be that I need to change to get it to play only once. Are you saying that if i type ps into xterm it will monitor commands as they are executed or what?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#4
top monitors the running processes. If you're interested in what config files a process reads, you could look for open files with lsof, or use strace (I think it's available somewhere for the NITs) to trace the kernel calls. Warning: strace produces tons of output and it's not easy to find the information you're looking for in the trace.
 
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#5
I cant find anything when it lists the commands about the modest sound file being played. Anyone have any idea where a configuration file that might contain said commands would be located?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
It's in the modest source itself (http://repository.maemo.org/pool/dia...08.43-1.tar.gz). Modest does not run an external program to play the sound, and nor does it have a configurable option for how many times to play the sound.

From modest-1.0-2008.43\src\maemo\modest-platform.c:

Code:
			hildon_play_system_sound (MODEST_NEW_MAIL_SOUND_FILE);
...
				notify_notification_set_hint_string(NOTIFY_NOTIFICATION (notification),
								    "sound-file", MODEST_NEW_MAIL_SOUND_FILE);
Those are the lines of code that cause modest to play the sound. Have fun recompiling. =)
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#7
So theres nothing at all I can dig into on the tablet....preferably using emelfm2 to find anything,, to change it?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
Den in USA's Avatar
Posts: 1,390 | Thanked: 642 times | Joined on Nov 2007 @ California USA
#8
Originally Posted by munky261 View Post
So theres nothing at all I can dig into on the tablet....preferably using emelfm2 to find anything,, to change it?
Rename your favorite wave file to ui-new_email.wav and put it in the /usr/share/sounds folder.
__________________
N800 / Diablo / 16gb int / 16gb ext / Globalsat BT-359 gps ..... Dell Streak 5 - Android 2.2.2
 
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#9
Originally Posted by munky261 View Post
I cant find anything when it lists the commands about the modest sound file being played.
See "modest_platform_push_email_notification" and "modest_platform_on_new_headers_received" in modest-platform.c.
__________________
maemo.org profile
 

The Following User Says Thank You to sjgadsby For This Useful Post:
Den in USA's Avatar
Posts: 1,390 | Thanked: 642 times | Joined on Nov 2007 @ California USA
#10
Originally Posted by munky261 View Post
So theres nothing at all I can dig into on the tablet....preferably using emelfm2 to find anything,, to change it?

See post #8
__________________
N800 / Diablo / 16gb int / 16gb ext / Globalsat BT-359 gps ..... Dell Streak 5 - Android 2.2.2
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:33.