aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 6437524b..b472a60a 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -213,6 +213,18 @@ void LSession::launchStartupApps(){
if(sessionsettings->value("EnableNumlock",true).toBool()){
QProcess::startDetached("numlockx on");
}
+ //Now get any XDG startup applications and launch them
+ QList<XDGDesktop> xdgapps = LXDG::findAutoStartFiles();
+ for(int i=0; i<xdgapps.length(); i++){
+ qDebug() << " - Auto-Starting File:" << xdgapps[i].filePath;
+ if(xdgapps[i].startupNotify){
+ LSession::LaunchApplication("lumina-open \""+xdgapps[i].filePath+"\"");
+ }else{
+ //Don't update the mouse cursor
+ QProcess::startDetached("lumina-open \""+xdgapps[i].filePath+"\"");
+ }
+ }
+
}
void LSession::StartLogout(){
bgstack15