[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kinit
From:       Jonathan Riddell <jr () jriddell ! org>
Date:       2006-02-09 11:20:20
Message-ID: 1139484020.676649.17579.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 507484 by jriddell:

Respect OnlyShowIn and NotShowIn for autostart files, since Gnome is now using /usr/share/autostart


 M  +11 -0     autostart.cpp  


--- branches/KDE/3.5/kdelibs/kinit/autostart.cpp #507483:507484
@@ -117,6 +117,17 @@
           continue;
        if (config.readBoolEntry("Hidden", false))
           continue;
+
+       if (config.hasKey("OnlyShowIn"))
+       {
+          if (!config.readListEntry("OnlyShowIn", ';').contains("KDE"))
+              continue;
+       }
+       if (config.hasKey("NotShowIn"))
+       {
+           if (config.readListEntry("NotShowIn", ';').contains("KDE"))
+               continue;
+       }
        
        AutoStartItem *item = new AutoStartItem;
        item->name = extractName(*it);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic