Bug 530 - KDE Sound Events does not work
Status:
VERIFIED FIXED
Component:
GUI :: gtkmm
Version:
1.8.2
Hardware:
PC Linux
Importance:
P3 normal
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
May 24 2006 05:32:24 UTC
by:
Phuah Yee Keat
Modified:
Aug 1 2006 10:01:02 UTC
IdWhoWhenSizeType
58Patch so that sound will work on KDE
Phuah Yee KeatJul 31 2006 12:29:59 UTC1888text/plain
WhoWhenWhatRemovedAdded
Rob CaelersJul 31 2006 18:21:20 UTCstatusNEWRESOLVED
resolutionFIXED
Phuah Yee KeatAug 1 2006 10:01:02 UTCstatusRESOLVEDVERIFIED
Description
Phuah Yee Keat  May 24 2006 05:32:24 UTC
KDE Sound Events simply does not work, it all boils down to the source code:
frontend/common/src/kde/KdeSoundPlayer.cc
Line 34 should states 
kinstance = new KInstance("kworkrave"); 
instead of
kinstance = new Kinstance("Workrave");

as the install scripts install the eventsrc file into KDE_PATH/share/apps/kworkrave
instead of
KDE_PATH/share/apps/Workrave

I have tested the changes on my machine and it worked.
Comment 1
Phuah Yee Keat  Jul 31 2006 12:29:59 UTC
Created attachment 58
Patch so that sound will work on KDE

1. The app is registered as kworkrave, so, when playing the sound, the name should be initialized to kworkrave as well.

2. The .wav files are installed in sounds/workrave, as stated in eventsrc.in.
Comment 2
Rob Caelers  Jul 31 2006 18:21:20 UTC
Patch applied. Thanks!