maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   X-Term Command Question (https://talk.maemo.org/showthread.php?t=30764)

munky261 2009-08-12 04:28

X-Term Command Question
 
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?

gogol 2009-08-12 05:21

Re: X-Term Command Question
 
ps or top ?

munky261 2009-08-12 05:49

Re: X-Term Command Question
 
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?

pycage 2009-08-12 06:25

Re: X-Term Command Question
 
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 2009-08-12 15:35

Re: X-Term Command Question
 
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?

qwerty12 2009-08-12 15:40

Re: X-Term Command Question
 
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. =)

munky261 2009-08-12 15:45

Re: X-Term Command Question
 
So theres nothing at all I can dig into on the tablet....preferably using emelfm2 to find anything,, to change it?

Den in USA 2009-08-12 15:50

Re: X-Term Command Question
 
Quote:

Originally Posted by munky261 (Post 311236)
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.

sjgadsby 2009-08-12 15:50

Re: X-Term Command Question
 
Quote:

Originally Posted by munky261 (Post 311231)
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.

Den in USA 2009-08-12 15:53

Re: X-Term Command Question
 
Quote:

Originally Posted by munky261 (Post 311236)
So theres nothing at all I can dig into on the tablet....preferably using emelfm2 to find anything,, to change it?


See post #8

munky261 2009-08-12 15:57

Re: X-Term Command Question
 
Im reading that, and I'm not seeing anything on either of those two the indicates the number of times the sound is played.

munky261 2009-08-12 16:02

Re: X-Term Command Question
 
Den, I have already done that, my current email sound is lets just say a simple "ding" (I use the old yahoo email wav) for every email that arrives the sound file is played twice.


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

vBulletin® Version 3.8.8