From cb266bcee0a2337e095027dbd981d90b638c7fe6 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 25 Sep 2007 12:46:37 +0000 Subject: [PATCH] fix rh#243611, autostart from XDG_CONFIG_DIRS --- kdelibs-3.5.7-autostart.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 kdelibs-3.5.7-autostart.patch diff --git a/kdelibs-3.5.7-autostart.patch b/kdelibs-3.5.7-autostart.patch new file mode 100644 index 0000000..535540c --- /dev/null +++ b/kdelibs-3.5.7-autostart.patch @@ -0,0 +1,15 @@ +--- kdelibs-3.5.7/kinit/autostart.cpp.orig 2007-09-25 11:32:07.000000000 +0200 ++++ kdelibs-3.5.7/kinit/autostart.cpp 2007-09-25 14:14:29.000000000 +0200 +@@ -48,6 +48,12 @@ AutoStart::AutoStart( bool new_startup ) + m_startList = new AutoStartList; + m_startList->setAutoDelete(true); + KGlobal::dirs()->addResourceType("autostart", "share/autostart"); ++ QString xdgconf_dirs = KGlobal::dirs()->kfsstnd_xdg_conf_prefixes(); ++ if (xdgconf_dirs.isEmpty()) ++ xdgconf_dirs = "/etc/xdg"; ++ QStringList xdgconf_dirslist = QStringList::split( ':', xdgconf_dirs ); ++ for ( QStringList::Iterator d = xdgconf_dirslist.begin(); d != xdgconf_dirslist.end(); ++d ) ++ KGlobal::dirs()->addResourceDir("autostart", (*d) + "/autostart"); + } + + AutoStart::~AutoStart()