FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-15-2012, 05:21 PM
Steve Riley
 
Default System sounds

On 2012-03-15 20:04:58 Georgi Kourtev <gkourtev@gmail.com> wrote:
>
> Thanks. Here is the output:
>
> /usr/share/kde4/apps/k3b/k3b.notifyrc:Sound=file:///usr/share/sounds/file:/
> //usr/share/sounds/file:///usr/share/sounds/KDE- K3B-Finish-Success.ogg
---snip---
> ------END-------
> gk

Yup, same thing I ran into today. Here's how I fixed it.

Run the following command. My email client wraps, but it should be a single
line. Note that there is a space following the "-i".

for j in /usr/share/kde4/apps/*/*.notifyrc; do sudo sed -i
's_Sound=file:///usr/share/sounds/_Sound=_g' $j; done

That will remove the extraneous "file:///" stuff. Check the results with the
same command I mentioned earlier:

grep Sound /usr/share/kde4/apps/*/*.notifyrc

If you still see "file:///" in any of the lines, run the "for" command again,
and check the results with the "grep" command. Lather/rinse/repeat until there
are no more lines with "file:///".

Ultimately what you'll end up with are lines that show "Sound=filename" with no
path. Now to get everything fixed with the correct path, run the original
script I posted on KFN.

...Steve

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 03-15-2012, 05:46 PM
Georgi Kourtev
 
Default System sounds

Yup, same thing I ran into today. Here's how I fixed it.



Run the following command. My email client wraps, but it should be a single

line. Note that there is a space following the "-i".



for j in /usr/share/kde4/apps/*/*.notifyrc; do sudo sed -i

's_Sound=file:///usr/share/sounds/_Sound=_g' $j; done



That will remove the extraneous "file:///" stuff. Check the results with the

same command I mentioned earlier:



grep Sound /usr/share/kde4/apps/*/*.notifyrc



If you still see "file:///" in any of the lines, run the "for" command again,

and check the results with the "grep" command. Lather/rinse/repeat until there

are no more lines with "file:///".



Ultimately what you'll end up with are lines that show "Sound=filename" with no

path. Now to get everything fixed with the correct path, run the original

script I posted on KFN.



...Steve





Thanks.* I did that and I got rid off all all file:/// stuff.* But after running the script, I see the file:/// lines again. Is this how it should be? See copy below.

grep Sound /usr/share/kde4/apps/*/*.notifyrc

/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">
/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">
/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">/usr/share/kde4/apps/ApperSentinel/ApperSentinel.notifyrc:Action="">
/usr/share/kde4/apps/k3b/k3b.notifyrc:Sound=file:///usr/share/sounds/KDE-K3B-Finish-Success.ogg
/usr/share/kde4/apps/k3b/k3b.notifyrc:Action="">/usr/share/kde4/apps/k3b/k3b.notifyrc:Sound=file:///usr/share/sounds/KDE-K3B-Finish-Error.ogg

/usr/share/kde4/apps/k3b/k3b.notifyrc:Action="">/usr/share/kde4/apps/k3b/k3b.notifyrc:Sound=file:///usr/share/sounds/KDE-K3B-Insert-Medium.ogg
/usr/share/kde4/apps/k3b/k3b.notifyrc:Action="">/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg

/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg

/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg

/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kaccess/kaccess.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">
/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Trash-Emptied.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-List-End.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-List-Match-No.ogg

/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-List-Match-Multiple.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Serious.ogg

/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error.ogg

/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Serious.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Log-In-Short.ogg

/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Log-Out.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Error-Printing.ogg

/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Warning.ogg

/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Critical.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">
/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Question.ogg
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Comment=Sound bell
/usr/share/kde4/apps/kde/kde.notifyrc:Comment[en_GB]=Sound bell

/usr/share/kde4/apps/kde/kde.notifyrc:Comment[x-test]=xxSound bellxx
/usr/share/kde4/apps/kde/kde.notifyrc:Action="">/usr/share/kde4/apps/kde/kde.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg

/usr/share/kde4/apps/kmail2/kmail2.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-New-Mail.ogg
/usr/share/kde4/apps/konsole/konsole.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Message-In.ogg

/usr/share/kde4/apps/kopete/kopete.notifyrc:Action="">/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Message-In.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Action="">
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Message-Out.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Contact-In.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Contact-Out.ogg

/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Highlight-Msg.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Action="">
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Error-On-Connection.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Action="">/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Internal-Error.ogg

/usr/share/kde4/apps/kopete/kopete.notifyrc:Action="">/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Nudge.ogg
/usr/share/kde4/apps/kopete/kopete.notifyrc:Action="">
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/
/usr/share/kde4/apps/kopete/kopete.notifyrc:Sound=file:///usr/share/sounds/

/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">
/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">
/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/ktorrent/ktorrent.notifyrc:Action="">/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Special.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Close.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Shade-Up.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Shade-Down.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Minimize.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Maximize.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Maximize.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Minimize.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-All-Desktops.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-All-Desktops-Not.ogg
/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg

/usr/share/kde4/apps/kwin/kwin.notifyrc:Sound=file:///usr/share/sounds/KDE-Window-Close.ogg
/usr/share/kde4/apps/kwrited/kwrited.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg
/usr/share/kde4/apps/kwrited/kwrited.notifyrc:Action="">
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Warning.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-Warning.ogg

/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Critical.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Positive.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Negative.ogg

/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Critical.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Message.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Negative.ogg

/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Critical.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Critical.ogg
/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Sound=file:///usr/share/sounds/KDE-Sys-App-Error-Critical.ogg

/usr/share/kde4/apps/powerdevil/powerdevil.notifyrc:Action="">/usr/share/kde4/apps/quassel/quassel.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Highlight-Msg.ogg
/usr/share/kde4/apps/quassel/quassel.notifyrc:Action="">
/usr/share/kde4/apps/quassel/quassel.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Highlight-Msg.ogg
/usr/share/kde4/apps/quassel/quassel.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Message-In.ogg
/usr/share/kde4/apps/quassel/quassel.notifyrc:Action="">
/usr/share/kde4/apps/quassel/quassel.notifyrc:Sound=file:///usr/share/sounds/KDE-Im-Message-In.ogg
*
----END---
gk

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 03-15-2012, 05:58 PM
Steve Riley
 
Default System sounds

On 2012-03-15 20:46:46 Georgi Kourtev <gkourtev@gmail.com> wrote:
>
> Thanks. I did that and I got rid off all all file:/// stuff. But after
> running the script, I see the file:/// lines again. Is this how it should
> be? See copy below.
>
> grep Sound /usr/share/kde4/apps/*/*.notifyrc
---snip---
> /usr/share/kde4/apps/k3b/k3b.notifyrc:Sound=file:///usr/share/sounds/KDE-K3
> B-Finish-Success.ogg
---snip---
> ----END---
> gk

Yes. There should be only one "file:///" for each line.

Some weeks ago, a KDE update changed all the default .notifyrc files and the
paths to the sound files were eliminated. I cobbled together that script on KFN
to fix the problem -- much quicker than hand-editing each file or using the GUI.

Every once in a while, an update would revert the .notifyrc files to their
broken state, so I'd have to run the script again.

It appears now that some, but not all, of the .notifyrc files are fixed. So
today's update resulted in some correct paths and some incorrect paths. When I
ran my script, the incorrect paths were fixed; the already-correct paths
received an extra "file:///" because my script is not smart enough to check
whether such an entry is already there And if you look at your prior email,
you'll lines with two "file:///" bits.

So by following the procedure I described, all your .notifyrc files are correct
as of right now. Who knows what'll happen with the next batch of updates. I
guess I should make my little script a bit smarter...

...Steve


--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 03-15-2012, 06:07 PM
Georgi Kourtev
 
Default System sounds

Yes. There should be only one "file:///" for each line.



Some weeks ago, a KDE update changed all the default .notifyrc files and the

paths to the sound files were eliminated. I cobbled together that script on KFN

to fix the problem -- much quicker than hand-editing each file or using the GUI.



Every once in a while, an update would revert the .notifyrc files to their

broken state, so I'd have to run the script again.



It appears now that some, but not all, of the .notifyrc files are fixed. So

today's update resulted in some correct paths and some incorrect paths. When I

ran my script, the incorrect paths were fixed; the already-correct paths

received an extra "file:///" because my script is not smart enough to check

whether such an entry is already there And if you look at your prior email,

you'll lines with two "file:///" bits.



So by following the procedure I described, all your .notifyrc files are correct

as of right now. Who knows what'll happen with the next batch of updates. I

guess I should make my little script a bit smarter...



...Steve




Your script is smart enough for me being a 'behind the keyboard only interface'. After reboot all sounds are fine.* Thanks a million!
gk


--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 04:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org