Bug 86898 - sound notification on new chat
Summary: sound notification on new chat
Status: REOPENED
Alias: None
Product: kopete
Classification: Applications
Component: Main Application (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 87786 111480 117511 123735 126859 150157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-10 11:21 UTC by Andy Parkins
Modified: 2011-04-12 18:55 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Parkins 2004-08-10 11:21:29 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I am feeling a need for a new event type in the notifications page.

It would be nice if there was an event for a new chat starting. i.e. the opening of a chat window, or the addition of a chat tab.

This would mean that when one is out of the room, you can hear that someone has sent you a new message.  This is different to the event on incoming message, as once I'm chatting I don't want a noise on every line, just to let me know that a new chat has started.

Thanks.
Comment 1 S. Burmeister 2004-10-14 09:20:16 UTC
I second this request, as I do not want to hear a sound on every message that arrives but only when somebody tries to start a new chat.
Comment 2 Jason Keirstead 2004-10-14 13:10:37 UTC
There is already a KNotify event for when someone initiates a new conversation. But this only works if the message queue is enabled - it is fired when a new event is placed on the queue.

Apparantly this bug reporter wants the event to work when you have the queue disabled as well.
Comment 3 Andy Parkins 2004-10-14 13:31:24 UTC
The following notifications are in my list for 0.9.0 on 3.3.0

* A contact has come online
* A contact has gone offline
* A contact's online status has changed
* A highlighted message has been received
* A message marked with a low priority has been received
* An incoming message has been received
* An outgoing message has been sent
* New email has arrived in your MSN inbox
* New email has arrived in your Yahoo inbox
* Sound notification for Kopete events

Which of these is the one you indicate "There is already a KNotify event for when someone initiates a new conversation"?  The closest is "An incoming message has been received". 

Also you say that it only works if the message queue is enabled - I have the following ticked:
Settings->Behaviour->Miscellaneous->Use the message queue
And there is no change in the notifications available.

You are correct however, that I do believe this should work whether the queue is enabled or not.
Comment 4 Jason Keirstead 2004-10-14 14:24:03 UTC
On October 14, 2004 08:31 am, Andy Parkins wrote:
> Which of these is the one you indicate "There is already a KNotify event
> for when someone initiates a new conversation"?  The closest is "An
> incoming message has been received".

"Sound notification for Kopete events"

I know the label is horrible, but that is what it is.

> Also you say that it only works if the message queue is enabled - I have
> the following ticked: Settings->Behaviour->Miscellaneous->Use the message
> queue

If you have the queue enabled, the above event occurs when a user starts a new 
conversation only.

Comment 5 S. Burmeister 2004-10-14 14:43:23 UTC
It does not work for me. The sound is not played when the notification-bubble, asking to start or ignore the chat, appears.
Comment 6 S. Burmeister 2004-10-29 16:18:30 UTC
> If you have the queue enabled, the above event occurs when a
> user starts a new conversation only. 

As this is not the case, this is not a wishlist item but a bug. Or shall I file another one?
Comment 7 Olivier Goffart 2004-11-28 21:43:48 UTC
*** Bug 87786 has been marked as a duplicate of this bug. ***
Comment 8 S. Burmeister 2005-01-17 22:44:46 UTC
Still valid for KDE Beta1 3.4
Comment 9 Luke-Jr 2005-02-06 04:14:36 UTC
I'm giving this my "vocal" vote.. since I've split up my others already.
Comment 10 Rene Horn 2005-03-18 15:06:23 UTC
*** This bug has been confirmed by popular vote. ***
Comment 11 Dan Berger 2005-08-10 07:08:29 UTC
Very much needed!
Comment 12 Jan Ritzerfeld 2005-08-30 20:35:39 UTC
*** Bug 111480 has been marked as a duplicate of this bug. ***
Comment 13 Lee Braiden 2005-12-18 12:10:07 UTC
Agreed.  I would really like to see this fixed too.  Currently, I've tied the incoming message notification to the following shell script, which works sometimes, and might be useful to other bug reporters in the meantime.  But, this is slow, unreliable, and unnecessarily resource-hungry.  Something built into kopete that only triggers on new messages (and is correctly labelled and intuitive) would be a great help.

--------------------------------

#!/bin/sh
LAST_TIMESTAMP_FILE=~/.last_msg_timestamp

#SOUND_FILE=/usr/share/sounds/Kopete_Received.ogg
#PLAYER="ogg123"

SOUND_FILE=/usr/share/sounds/KDE_Notify.wav
PLAYER="bplay"

FMT=%Y%j%H%M

NOW=`date +${FMT}`

HOUR=`date +%H`

if [ -e $LAST_TIMESTAMP_FILE ]; then
	LAST=`cat $LAST_TIMESTAMP_FILE`
else
	LAST=0
fi

DIFF=`expr $NOW - $LAST`

if [ $DIFF -gt 5 ]; then
	# don't play if it's after midnight -- msgs aren't THAT important :)
	if [ $HOUR -gt 8 ]; then
		$PLAYER 2>/dev/null >/dev/null "$SOUND_FILE"
	else
		echo "Sleeping time; won't play"
	fi
else
	echo "Hasn't been five minutes since last message; skipping."
fi

date +${FMT} > $LAST_TIMESTAMP_FILE

--------------------------------
Comment 14 kaouete 2006-02-06 12:17:20 UTC
i am wondering if someone is working on it.
i cant find anything new in dev-0.12 for this problem.
Comment 15 Jan Ritzerfeld 2007-09-24 21:20:48 UTC
*** Bug 150157 has been marked as a duplicate of this bug. ***
Comment 16 Jan Ritzerfeld 2008-01-19 14:04:35 UTC
*** Bug 117511 has been marked as a duplicate of this bug. ***
Comment 17 Jan Ritzerfeld 2008-01-19 14:31:50 UTC
*** Bug 123735 has been marked as a duplicate of this bug. ***
Comment 18 Florian Lindner 2009-12-09 18:55:22 UTC
This issuse is still valid with KDE 4.3, Kopete 0.80.2. The sound notification for kopete events item has vanished.
Comment 19 Lamarque V. Souza 2011-04-12 10:28:53 UTC
*** Bug 126859 has been marked as a duplicate of this bug. ***
Comment 20 Lamarque V. Souza 2011-04-12 10:32:56 UTC
This seems fixed in at least 4.6.2. There are two notifications for incoming messages: one for when the message comes from the active window and another for when it does not. So you just need to disable the sound in the former notification.
Comment 21 kaouete 2011-04-12 11:02:20 UTC
I don't completely agree with your analysis, I think the idea was to have a notification when a new chat was started!

So for example, I don't want notification from an already opened chat that is in the background… !

No?
Comment 22 Andy Parkins 2011-04-12 11:45:30 UTC
Let me be clear what problems I have that Kopete didn't (perhaps it does now with 4.6.2, I haven't tried it yet) solve:

I am watching TV with my laptop on and in the same room, but not in use -- it's sitting on a table with the screensaver running.

 - Someone wants to chat with me.  How would I know?  I couldn't use notifications previously, because even when I was sat in front of the computer, everytime they typed anything I get constant noises.
 - Someone I was chatting with 2 hours ago, comes back online and says something.  I have walked away from the computer and the screensaver has kicked in.  How do I know they are waiting to speak?

The solution, to me, seems obvious, and my mobile phone implements the algorithm correctly, but Kopete never has:

If a chat opens or a new line is received AND my screensaver is active (or perhaps simply Kopete has auto-awayed) then make a noise.  If the mouse is moving around on the screen, then don't make a noise, just pop up a notification.

Noises are there for when I can't see the screen, but my attention is needed.  But noises when I can see the screen are an annoyance.
Comment 23 Lamarque V. Souza 2011-04-12 18:34:31 UTC
(In reply to comment #22)
> Let me be clear what problems I have that Kopete didn't (perhaps it does now
> with 4.6.2, I haven't tried it yet) solve:
> 
> I am watching TV with my laptop on and in the same room, but not in use -- it's
> sitting on a table with the screensaver running.
> 
>  - Someone wants to chat with me.  How would I know?  I couldn't use
> notifications previously, because even when I was sat in front of the computer,
> everytime they typed anything I get constant noises.
>  - Someone I was chatting with 2 hours ago, comes back online and says
> something.  I have walked away from the computer and the screensaver has kicked
> in.  How do I know they are waiting to speak?
> 
> The solution, to me, seems obvious, and my mobile phone implements the
> algorithm correctly, but Kopete never has:
> 
> If a chat opens or a new line is received AND my screensaver is active (or
> perhaps simply Kopete has auto-awayed) then make a noise.  If the mouse is
> moving around on the screen, then don't make a noise, just pop up a
> notification.
> 
> Noises are there for when I can't see the screen, but my attention is needed. 
> But noises when I can see the screen are an annoyance.

This is a different scenario that has not been mentioned on this bug entry before. Kopete does not do that, I think no KDE program interacts to the screensaver in that way as far as I know. Ok, re-open this bug then.
Comment 24 Andy Parkins 2011-04-12 18:55:34 UTC
I didn't mean to say that it definitely has to be tied to the screensaver.  It would be sufficient to be linked to Kopete's auto-away state.  The screensaver is not a good choice of indicator anyway, as presumably some people will disable the screensaver, but might still walk away from the computer.

I think it has to be: noises when kopete thinks I'm "away".