summaryrefslogtreecommitdiffstats
path: root/opensuse/tdelibs/autostart-spec.diff
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-13 12:21:22 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-13 12:21:22 -0500
commitf65bcb8326e06816d7dc49e58bda120182dbbcd6 (patch)
tree4e7fef001fc523929450778d10c86b41e6e32eda /opensuse/tdelibs/autostart-spec.diff
parent131df957b41b4683571b1e36e6fed9d614d32356 (diff)
parentfa41f32b69994ecd75b7359fa2df08ea5a3480ab (diff)
downloadtde-packaging-f65bcb8326e06816d7dc49e58bda120182dbbcd6.tar.gz
tde-packaging-f65bcb8326e06816d7dc49e58bda120182dbbcd6.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'opensuse/tdelibs/autostart-spec.diff')
-rw-r--r--opensuse/tdelibs/autostart-spec.diff55
1 files changed, 55 insertions, 0 deletions
diff --git a/opensuse/tdelibs/autostart-spec.diff b/opensuse/tdelibs/autostart-spec.diff
new file mode 100644
index 000000000..a67a8e487
--- /dev/null
+++ b/opensuse/tdelibs/autostart-spec.diff
@@ -0,0 +1,55 @@
+Index: kdecore/kstandarddirs.cpp
+===================================================================
+--- kdecore/kstandarddirs.cpp.orig
++++ kdecore/kstandarddirs.cpp
+@@ -100,7 +100,7 @@ static const char* const types[] = {"htm
+ "wallpaper", "lib", "pixmap", "templates",
+ "module", "qtplugins",
+ "xdgdata-apps", "xdgdata-dirs", "xdgconf-menu",
+- "xdgdata-icon", "xdgdata-pixmap",
++ "xdgdata-icon", "xdgdata-pixmap", "xdgconf-autostart",
+ "kcfg", "emoticons", 0 };
+
+ static int tokenize( QStringList& token, const QString& str,
+@@ -1067,6 +1067,8 @@ QString KStandardDirs::kde_default(const
+ return "desktop-directories/";
+ if (!strcmp(type, "xdgconf-menu"))
+ return "menus/";
++ if (!strcmp(type, "xdgconf-autostart"))
++ return "autostart/";
+ if (!strcmp(type, "kcfg"))
+ return "share/config.kcfg";
+ if (!strcmp(type, "emoticons"))
+Index: kinit/autostart.cpp
+===================================================================
+--- kinit/autostart.cpp.orig
++++ kinit/autostart.cpp
+@@ -104,7 +104,9 @@ static bool startCondition(const QString
+ void
+ AutoStart::loadAutoStartList()
+ {
+- QStringList files = KGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true);
++ QStringList files = KGlobal::dirs()->findAllResources("xdgconf-autostart", "*.desktop", false, true);
++ QStringList kdefiles = KGlobal::dirs()->findAllResources("autostart", "*.desktop", false, true);
++ files += kdefiles;
+
+ for(QStringList::ConstIterator it = files.begin();
+ it != files.end();
+@@ -129,6 +131,17 @@ AutoStart::loadAutoStartList()
+ 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);
+ item->service = *it;