aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/main.cpp
diff options
context:
space:
mode:
authorJesse Smith <jessefrgsmith@yahoo.ca>2014-09-24 21:22:43 -0300
committerJesse Smith <jessefrgsmith@yahoo.ca>2014-09-24 21:22:43 -0300
commit556040ae16579ff0ca360964bbb025e6b3bb1739 (patch)
tree0a8f7158000d15d8af70ecbd401475f0cc341100 /lumina-fm/main.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadlumina-556040ae16579ff0ca360964bbb025e6b3bb1739.tar.gz
lumina-556040ae16579ff0ca360964bbb025e6b3bb1739.tar.bz2
lumina-556040ae16579ff0ca360964bbb025e6b3bb1739.zip
Added initial support for Debian/kFreeBSD. This patch has been tested
and shown to build/run on Debian/kFreeBSD, Ubuntu and PC-BSD.
Diffstat (limited to 'lumina-fm/main.cpp')
-rw-r--r--lumina-fm/main.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lumina-fm/main.cpp b/lumina-fm/main.cpp
index d15a81d3..4c23366a 100644
--- a/lumina-fm/main.cpp
+++ b/lumina-fm/main.cpp
@@ -1,9 +1,7 @@
#include <QTranslator>
-#ifdef __linux
- // #include <QtSolutions/qtsingleapplication.h>
-#else
+#ifdef __FreeBSD__
#include <qtsingleapplication.h>
-#endif // #ifdef __linux
+#endif
#include <QtGui/QApplication>
#include <QDebug>
#include <QFile>
@@ -22,13 +20,13 @@ int main(int argc, char ** argv)
in << QString(argv[i]);
}
if(in.isEmpty()){ in << QDir::homePath(); }
- #ifdef __linux
- QApplication a(argc, argv);
- #else
+ #ifdef __FreeBSD__
QtSingleApplication a(argc, argv);
if( a.isRunning() ){
return !(a.sendMessage(in.join("\n")));
}
+ #else
+ QApplication a(argc, argv);
#endif
a.setApplicationName("Insight File Manager");
//Load current Locale
bgstack15