diff options
Diffstat (limited to 'kinit/autostart.cpp')
-rw-r--r-- | kinit/autostart.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kinit/autostart.cpp b/kinit/autostart.cpp index 0b39a3275..7780f793c 100644 --- a/kinit/autostart.cpp +++ b/kinit/autostart.cpp @@ -48,6 +48,14 @@ AutoStart::AutoStart( bool new_startup ) m_startList = new AutoStartList; m_startList->setAutoDelete(true); KGlobal::dirs()->addResourceType("autostart", "share/autostart"); + QString xdgdirs = getenv("XDG_CONFIG_DIRS"); + if (xdgdirs.isEmpty()) + xdgdirs = "/etc/xdg"; + + QStringList xdgdirslist = QStringList::split( ':', xdgdirs ); + for ( QStringList::Iterator itr = xdgdirslist.begin(); itr != xdgdirslist.end(); ++itr ) { + KGlobal::dirs()->addResourceDir("autostart", (*itr) +"/autostart"); + } } AutoStart::~AutoStart() |