KNotify = Rediculous

Ryan ryan at crystaldawn.net
Wed Dec 21 03:02:32 GMT 2005


I need a life.  Replying to myself hehe.  This patch should have been 
put in 3 years ago lol.  Maybe to it, you should add 
KConfig("knotifyrc", DO NOT TOUCH UNLESS I SAY SO); hahaha


http://lists.debian.org/debian-qt-kde/2005/06/msg00118.html

Cheers,
Christopher Martin

--- kde.orig/kcontrol/arts/arts.cpp
+++ kde.patched/kcontrol/arts/arts.cpp
@@ -383,6 +383,12 @@
 
 	delete midiConfig;
 
+	KConfig *knotifyConfig = new KConfig( "knotifyrc", false );
+        knotifyConfig->setGroup( "StartProgress" );
+        knotifyConfig->writeEntry( "Arts Init", startServer->isChecked());
+        knotifyConfig->writeEntry( "Use Arts", startServer->isChecked());
+        delete knotifyConfig;
+
 	config->sync();
 }
 


Ryan wrote:

>Test.  (Forgot to add this list to Text only, and my previous reply was 
>in html)
>
>Ryan wrote:
>
>  
>
>>Hmm, maybe I wasnt clear enough?  The point I was making was that the 
>>sound center WORKED, but the system notifications did NOT.  If you go 
>>to the sound center in the KDE control panel, and clicked on Test, it 
>>would work.  But if you tried ANY System Notification sound, it would 
>>NOT work in the scenerio I mentioned.  This is an extremly common 
>>problem, and I am having a hard time believing that the KDE team just 
>>doesnt know about this.  I've never met a single person that has NOT 
>>had this problem.  Unless of coarse they come from a mailing list 
>>where there really arent all that many "regular joes".
>>
>>John wrote:
>>
>>    
>>
>>>Hi
>>>Not sure what you are trying to do but my mail notification has worked for 
>>>years. I turned others off as they irritated me. Only lost sound when I did a 
>>>partial lib upgrade. Not a knotify problem. I had to enable the open sound 
>>>system. No idea why.
>>>I don't know much about the subject but the graphical way of setting it up is 
>>>via KDE's control centre, sound and multimedia, system notifications. Many 
>>>things can be done on a user basis by any user so root ownership etc makes no 
>>>sense at all.
>>>This suggests that all controls are kept on a user basis so the system might 
>>>be writing what ever that is each time it runs.
>>>
>>>Regards
>>>John
>>>
>>>
>>>On Tuesday 20 December 2005 19:00, Ryan wrote:
>>> 
>>>
>>>      
>>>
>>>>I have this problem with KNotify with ANY distro that I install with any
>>>>version of KDE.  KNotify ALWAYS DISABLES ITSELF.  It's really been
>>>>pissin me off the last few days because it's been turning my own
>>>>~/.kde/share/knotifyrc file off even when the sound system ISNT crashed
>>>>or down.  The only way to stop it is to chown the file to root, or
>>>>change the permisions to be read only, but that is WRONG I dont care who
>>>>says it's the "correct" way to fix it, it just plain shouldnt be turning
>>>>things false without at least ASKING you to let it change to false.
>>>>This has really been a nightmare for anyone that I've ever tried to get
>>>>to use Linux because every single day (it never fails, it always
>>>>happens), they call me and ask how to get sound running because it just
>>>>suddenly stopped working.  Every time it's always the KnotifyRC that is
>>>>the problem and I've just about had it myself.
>>>>
>>>>My question, is there ANY possible way to stop this from happening other
>>>>than changing the permissions of the file.  Here's an example of what I
>>>>did to test it today on my own machine.
>>>>
>>>>I woke up this mornin, starting messing with some stuff in Konsole and
>>>>noticed the damn beeps were off yet AGAIN.  So as usual, I opened the
>>>>knotifyrc file and changed:
>>>>
>>>>[StartProgress]
>>>>Arts Init=false
>>>>KNotify Init=true
>>>>Use Arts=false
>>>>
>>>>to
>>>>
>>>>[StartProgress]
>>>>Arts Init=true
>>>>KNotify Init=true
>>>>Use Arts=true
>>>>
>>>>I then tested the sound in Konsole, and sure enough, there was none.
>>>>So, what do I do?  Open knotify AGAIN and low and behold, its set to
>>>>false!!!!!!!!!!!!!!!!!!!!!!  So, I set it again thinking maybe I didnt
>>>>save the file.  Repeat, and whatya know, its False again!.  So this
>>>>time, I get pissed and chown it to root, use root to change the file,
>>>>test the sound again, and guess what happens.  I get this window from
>>>>KNotify saying that it cant write to the knotifyrc file.  So I say to
>>>>myself GOOD YOU LOUSY NO GOOD PIECE OF *****, you shouldnt be writting
>>>>to it!  Then, right after I close that window, I HEARD THE KONSOLE
>>>>SYSTEM NOTIFICATION SOUND!!  I'm like OMG
>>>>WTF$%^*@#*$%^&*^#$%%^#@!T$%&^T&^%&
>>>>
>>>>Now, why in the world is Knotify turning its self off when I just proved
>>>>to it that that sound WAS on?  Is there a bug about this anywhere on the
>>>>KDE site?  Because if there isnt, there should be.  It's been like this
>>>>for me from version 3.0 to 3.5 and it's never once been fixed in KDE.
>>>>Is it just me and my clients, or does everyone else have this problem?
>>>>And DO NOT tell me that the fix for it is to just change the
>>>>permissions, that's the stupidest response ever.  If you do that, then
>>>>every time you login to KDE, you'll be greeted with an error window, and
>>>>when you are one of my clients, you dont like error windows because they
>>>>are scary.  There has to be an option somewhere where you can set it to
>>>>NOT write to the file at all, or at least tell you that its going to do
>>>>so and give you a chance to tell it that it's full of **** and doesnt
>>>>know what its doing, and give you the chance to skip the write process.
>>>>
>>>>___________________________________________________
>>>>This message is from the kde mailing list.
>>>>Account management:  https://mail.kde.org/mailman/listinfo/kde.
>>>>Archives: http://lists.kde.org/.
>>>>More info: http://www.kde.org/faq.html.
>>>>   
>>>>
>>>>        
>>>>
>>>___________________________________________________
>>>This message is from the kde mailing list.
>>>Account management:  https://mail.kde.org/mailman/listinfo/kde.
>>>Archives: http://lists.kde.org/.
>>>More info: http://www.kde.org/faq.html.
>>>
>>> 
>>>
>>>      
>>>
>>------------------------------------------------------------------------
>>
>>___________________________________________________
>>This message is from the kde mailing list.
>>Account management:  https://mail.kde.org/mailman/listinfo/kde.
>>Archives: http://lists.kde.org/.
>>More info: http://www.kde.org/faq.html.
>>
>>    
>>
>
>___________________________________________________
>This message is from the kde mailing list.
>Account management:  https://mail.kde.org/mailman/listinfo/kde.
>Archives: http://lists.kde.org/.
>More info: http://www.kde.org/faq.html.
>
>  
>

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list