diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-30 09:45:46 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-30 09:45:46 -0400 |
commit | 1c320661dbdad0a48e4000f0aa3fedc3f1877878 (patch) | |
tree | 79a9f1e266132f0f34f08a966c64e416b028a7dd /lumina-desktop | |
parent | Add thumbnail support for image files in the desktopview plugin. (diff) | |
download | lumina-1c320661dbdad0a48e4000f0aa3fedc3f1877878.tar.gz lumina-1c320661dbdad0a48e4000f0aa3fedc3f1877878.tar.bz2 lumina-1c320661dbdad0a48e4000f0aa3fedc3f1877878.zip |
Add usage support for the XDG autostart specifications. This is currently on top of the older Lumina autostart specification, until I can get the writing support for the XDG spec in place as well - at which time I will convert any Lumina-spec entries to the XDG spec (for backwards compat).
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/LSession.cpp | 12 |
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(){ |