aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libLumina/LuminaUtils.cpp')
-rw-r--r--libLumina/LuminaUtils.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp
index 5f7a057e..a4c2792e 100644
--- a/libLumina/LuminaUtils.cpp
+++ b/libLumina/LuminaUtils.cpp
@@ -49,7 +49,18 @@ inline QStringList ProcessRun(QString cmd, QStringList args){
// LUtils Functions
//=============
QString LUtils::LuminaDesktopVersion(){
- return "0.8.8-devel";
+ QString ver = "0.8.8-devel";
+ #ifdef GIT_VERSION
+ ver.append( QString(" (Git Revision: %1)").arg(GIT_VERSION) );
+ #endif
+ return ver;
+}
+
+QString LUtils::LuminaDesktopBuildDate(){
+ #ifdef BUILD_DATE
+ return BUILD_DATE;
+ #endif
+ return "";
}
int LUtils::runCmd(QString cmd, QStringList args){
@@ -548,8 +559,8 @@ void LUtils::LoadSystemDefaults(bool skipOS){
if(sysDefaults.isEmpty() && !skipOS){ sysDefaults = LUtils::readFile(LOS::AppPrefix()+"etc/luminaDesktop.conf.dist"); }
if(sysDefaults.isEmpty() && !skipOS) { sysDefaults = LUtils::readFile(LOS::SysPrefix()+"etc/luminaDesktop.conf"); }
if(sysDefaults.isEmpty() && !skipOS){ sysDefaults = LUtils::readFile(LOS::SysPrefix()+"etc/luminaDesktop.conf.dist"); }
- if(sysDefaults.isEmpty() && !skipOS) { sysDefaults = LUtils::readFile("/etc/luminaDesktop.conf"); }
- if(sysDefaults.isEmpty() && !skipOS){ sysDefaults = LUtils::readFile("/etc/luminaDesktop.conf.dist"); }
+ if(sysDefaults.isEmpty() && !skipOS) { sysDefaults = LUtils::readFile(L_ETCDIR+"/luminaDesktop.conf"); }
+ if(sysDefaults.isEmpty() && !skipOS){ sysDefaults = LUtils::readFile(L_ETCDIR+"/luminaDesktop.conf.dist"); }
if(sysDefaults.isEmpty()){ sysDefaults = LUtils::readFile(LOS::LuminaShare()+"luminaDesktop.conf"); }
//Find the number of the left-most desktop screen
QString screen = "0";
bgstack15