aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-29 10:22:48 -0400
committerKen Moore <ken@pcbsd.org>2014-09-29 10:22:48 -0400
commit68977d5a80255861a1d89eb1b2390af2860259ab (patch)
treebc72a000a9ee67244ce0f092dfdb33db88322ca6
parentA few updates to plugins: (diff)
parentMerge pull request #13 from slicer69/master (diff)
downloadlumina-68977d5a80255861a1d89eb1b2390af2860259ab.tar.gz
lumina-68977d5a80255861a1d89eb1b2390af2860259ab.tar.bz2
lumina-68977d5a80255861a1d89eb1b2390af2860259ab.zip
Merge branch 'master' of github.com:pcbsd/lumina
-rw-r--r--DEPENDENCIES2
-rw-r--r--debian/libluminautils-dev.install4
-rw-r--r--debian/libluminautils1.install4
-rw-r--r--debian/lumina-config.install2
-rw-r--r--debian/lumina-core.install8
-rw-r--r--debian/lumina-fm.install6
-rw-r--r--debian/lumina-open.install2
-rw-r--r--debian/lumina-screenshot.install4
-rw-r--r--debian/patches/01-change-prefix.diff227
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules11
-rw-r--r--libLumina/LuminaOS-Linux.cpp22
-rw-r--r--libLumina/LuminaOS-kFreeBSD.cpp156
-rw-r--r--libLumina/libLumina.pro3
-rw-r--r--lumina-config/lumina-config.pro10
-rw-r--r--lumina-config/main.cpp9
-rw-r--r--lumina-fm/lumina-fm.pro5
-rw-r--r--lumina-fm/main.cpp12
-rw-r--r--lumina-screenshot/lumina-screenshot.pro5
19 files changed, 223 insertions, 270 deletions
diff --git a/DEPENDENCIES b/DEPENDENCIES
index 867b129a..dafae1e0 100644
--- a/DEPENDENCIES
+++ b/DEPENDENCIES
@@ -41,7 +41,7 @@ X.org and XLib with extensions:
=== Linux Requirements ===
These packages are required for building Lumina on Linux
- g++ (or clang, either compiler should work)
+ build-essential (this supplies g++, though clang should work too)
qt4-qmake
libqt4-core
libqt4-dev
diff --git a/debian/libluminautils-dev.install b/debian/libluminautils-dev.install
index b205e6c3..d3a27604 100644
--- a/debian/libluminautils-dev.install
+++ b/debian/libluminautils-dev.install
@@ -1,2 +1,2 @@
-usr/lib/libLuminaUtils.so
-usr/include/*.h
+usr/local/lib/libLuminaUtils.so
+usr/local/include/*.h
diff --git a/debian/libluminautils1.install b/debian/libluminautils1.install
index e6d42ae9..49146ecf 100644
--- a/debian/libluminautils1.install
+++ b/debian/libluminautils1.install
@@ -1 +1,3 @@
-usr/lib/libLuminaUtils.so.*
+usr/local/lib/libLuminaUtils.so.1
+usr/local/lib/libLuminaUtils.so.1.0
+usr/local/lib/libLuminaUtils.so.1.0.0
diff --git a/debian/lumina-config.install b/debian/lumina-config.install
index 4ed57486..f56549f5 100644
--- a/debian/lumina-config.install
+++ b/debian/lumina-config.install
@@ -1 +1 @@
-usr/bin/lumina-config
+usr/local/bin/lumina-config
diff --git a/debian/lumina-core.install b/debian/lumina-core.install
index 093cee7f..5ccc752e 100644
--- a/debian/lumina-core.install
+++ b/debian/lumina-core.install
@@ -1,5 +1,5 @@
-usr/bin/Lumina-DE
-usr/share/pixmaps/Lumina-DE.png
-usr/share/Lumina-DE/
-usr/share/wallpapers/Lumina-DE/
+usr/local/bin/Lumina-DE
+usr/local/share/pixmaps/Lumina-DE.png
+usr/local/share/Lumina-DE/
+usr/local/share/wallpapers/Lumina-DE/
usr/share/xsessions/Lumina-DE.desktop
diff --git a/debian/lumina-fm.install b/debian/lumina-fm.install
index b0e21dbd..1dc751d3 100644
--- a/debian/lumina-fm.install
+++ b/debian/lumina-fm.install
@@ -1,3 +1,3 @@
-usr/bin/lumina-fm
-usr/share/pixmaps/Insight-FileManager.png
-usr/share/applications/lumina-fm.desktop
+usr/local/bin/lumina-fm
+usr/local/share/pixmaps/Insight-FileManager.png
+usr/local/share/applications/lumina-fm.desktop
diff --git a/debian/lumina-open.install b/debian/lumina-open.install
index 401cd57a..a4a8e633 100644
--- a/debian/lumina-open.install
+++ b/debian/lumina-open.install
@@ -1 +1 @@
-usr/bin/lumina-open
+usr/local/bin/lumina-open
diff --git a/debian/lumina-screenshot.install b/debian/lumina-screenshot.install
index 2b426b55..41ade964 100644
--- a/debian/lumina-screenshot.install
+++ b/debian/lumina-screenshot.install
@@ -1,2 +1,2 @@
-usr/bin/lumina-screenshot
-usr/share/applications/lumina-screenshot.desktop
+usr/local/bin/lumina-screenshot
+usr/local/share/applications/lumina-screenshot.desktop
diff --git a/debian/patches/01-change-prefix.diff b/debian/patches/01-change-prefix.diff
deleted file mode 100644
index 8a610ab0..00000000
--- a/debian/patches/01-change-prefix.diff
+++ /dev/null
@@ -1,227 +0,0 @@
-Description: Change the prefix from /usr/local to /usr
- Change installation prefix to /usr
- .
- lumina-desktop (0.6.2.14-1nano) unstable; urgency=low
- .
- * Initial release
-Author: Christopher Roy Bratusek <nano@jpberlin.de>
-
---- lumina-desktop-0.6.2.14.orig/libLumina/libLumina.pro
-+++ lumina-desktop-0.6.2.14/libLumina/libLumina.pro
-@@ -2,7 +2,7 @@
- QT += core
-
- TARGET=LuminaUtils
--target.path = /usr/local/lib
-+target.path = /usr/lib
-
- DESTDIR= $$_PRO_FILE_PWD_/
-
-@@ -21,11 +21,11 @@ SOURCES += LuminaXDG.cpp \
- LuminaOS-FreeBSD.cpp \
- LuminaOS-Linux.cpp
-
--INCLUDEPATH += /usr/local/include
-+INCLUDEPATH += /usr/include
-
- LIBS += -lX11 -lXrender -lXcomposite
-
--include.path=/usr/local/include/
-+include.path=/usr/include/
- include.files=LuminaXDG.h \
- LuminaUtils.h \
- LuminaX11.h \
-@@ -33,4 +33,4 @@ include.files=LuminaXDG.h \
-
- INSTALLS += target include
-
--QMAKE_LIBDIR = /usr/local/lib/qt4 /usr/local/lib
-+QMAKE_LIBDIR = /usr/lib/qt4 /usr/lib
---- lumina-desktop-0.6.2.14.orig/lumina-config/lumina-config.pro
-+++ lumina-desktop-0.6.2.14/lumina-config/lumina-config.pro
-@@ -2,7 +2,7 @@
- QT += core gui
-
- TARGET = lumina-config
--target.path = /usr/local/bin
-+target.path = /usr/bin
-
- TEMPLATE = app
-
-@@ -20,7 +20,7 @@ FORMS += mainUI.ui \
-
- # RESOURCES+= lumina-config.qrc
-
--INCLUDEPATH += ../libLumina /usr/local/include
-+INCLUDEPATH += ../libLumina /usr/include
-
- linux-g++-64 {
- LIBS += -L../libLumina -lLuminaUtils
-@@ -93,7 +93,7 @@ TRANSLATIONS = i18n/lumina-config_af.ts
- i18n/lumina-config_zh_TW.ts \
- i18n/lumina-config_zu.ts
-
--dotrans.path=/usr/local/share/Lumina-DE/i18n/
--dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/local/share/Lumina-DE/i18n/
-+dotrans.path=/usr/share/Lumina-DE/i18n/
-+dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/share/Lumina-DE/i18n/
-
- INSTALLS += target dotrans
---- lumina-desktop-0.6.2.14.orig/lumina-desktop/lumina-desktop.pro
-+++ lumina-desktop-0.6.2.14/lumina-desktop/lumina-desktop.pro
-@@ -2,7 +2,7 @@
- QT += core gui network phonon
-
- TARGET = Lumina-DE
--target.path = /usr/local/bin
-+target.path = /usr/bin
-
- LIBS += -L../libLumina -lLuminaUtils -lXdamage -lX11
- QMAKE_LIBDIR = ../libLumina
-@@ -78,25 +78,25 @@ FORMS += SystemWindow.ui \
-
- RESOURCES+= Lumina-DE.qrc
-
--INCLUDEPATH += ../libLumina /usr/local/include
-+INCLUDEPATH += ../libLumina /usr/include
-
- desktop.files = Lumina-DE.desktop
- linux-g++-64 {
- desktop.path = /usr/share/xsessions
- } else {
--desktop.path = /usr/local/share/xsessions
-+desktop.path = /usr/share/xsessions
- }
-
- icons.files = Lumina-DE.png \
- Insight-FileManager.png
-
--icons.path = /usr/local/share/pixmaps
-+icons.path = /usr/share/pixmaps
-
- wallpapers.files = wallpapers/Lumina_Wispy_gold_1920x1080.jpg \
- wallpapers/Lumina_Wispy_green_1920x1080.jpg \
- wallpapers/Lumina_Wispy_purple_1920x1080.jpg \
- wallpapers/Lumina_Wispy_red_1920x1080.jpg
--wallpapers.path = /usr/local/share/wallpapers/Lumina-DE
-+wallpapers.path = /usr/share/wallpapers/Lumina-DE
-
- defaults.files = defaults/desktop-background.jpg \
- defaults/defaultapps.conf \
-@@ -104,7 +104,7 @@ defaults.files = defaults/desktop-backgr
- defaults/stylesheet.qss \
- audiofiles/Logout.ogg \
- audiofiles/Login.ogg
--defaults.path = /usr/local/share/Lumina-DE/
-+defaults.path = /usr/share/Lumina-DE/
-
- TRANSLATIONS = i18n/lumina-desktop_af.ts \
- i18n/lumina-desktop_ar.ts \
-@@ -169,7 +169,7 @@ TRANSLATIONS = i18n/lumina-desktop_af.t
- i18n/lumina-desktop_zh_TW.ts \
- i18n/lumina-desktop_zu.ts
-
--dotrans.path=/usr/local/share/Lumina-DE/i18n/
--dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/local/share/Lumina-DE/i18n/
-+dotrans.path=/usr/share/Lumina-DE/i18n/
-+dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/share/Lumina-DE/i18n/
-
- INSTALLS += target desktop icons wallpapers defaults dotrans
---- lumina-desktop-0.6.2.14.orig/lumina-fm/lumina-fm.pro
-+++ lumina-desktop-0.6.2.14/lumina-fm/lumina-fm.pro
-@@ -2,7 +2,7 @@
- QT += core gui phonon
-
- TARGET = lumina-fm
--target.path = /usr/local/bin
-+target.path = /usr/bin
-
- TEMPLATE = app
-
-@@ -22,7 +22,7 @@ FORMS += MainUI.ui \
-
- # RESOURCES+= lumina-fm.qrc
-
--INCLUDEPATH += ../libLumina /usr/local/include
-+INCLUDEPATH += ../libLumina /usr/include
-
- linux-g++-64 {
- LIBS += -L../libLumina -lLuminaUtils
-@@ -95,10 +95,10 @@ TRANSLATIONS = i18n/lumina-fm_af.ts \
- i18n/lumina-fm_zh_TW.ts \
- i18n/lumina-fm_zu.ts
-
--dotrans.path=/usr/local/share/Lumina-DE/i18n/
--dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/local/share/Lumina-DE/i18n/
-+dotrans.path=/usr/share/Lumina-DE/i18n/
-+dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/share/Lumina-DE/i18n/
-
- desktop.files=lumina-fm.desktop
--desktop.path=/usr/local/share/applications/
-+desktop.path=/usr/share/applications/
-
- INSTALLS += target dotrans desktop
---- lumina-desktop-0.6.2.14.orig/lumina-open/lumina-open.pro
-+++ lumina-desktop-0.6.2.14/lumina-open/lumina-open.pro
-@@ -2,7 +2,7 @@
- QT += core gui
-
- TARGET = lumina-open
--target.path = /usr/local/bin
-+target.path = /usr/bin
-
- TEMPLATE = app
-
-@@ -15,7 +15,7 @@ FORMS += LFileDialog.ui
-
- RESOURCES+= lumina-open.qrc
-
--INCLUDEPATH += ../libLumina /usr/local/include
-+INCLUDEPATH += ../libLumina /usr/include
- LIBS += -L../libLumina -lLuminaUtils
- QMAKE_LIBDIR = ../libLumina
- DEPENDPATH += ../libLumina
-@@ -83,7 +83,7 @@ TRANSLATIONS = i18n/lumina-open_af.ts \
- i18n/lumina-open_zh_TW.ts \
- i18n/lumina-open_zu.ts
-
--dotrans.path=/usr/local/share/Lumina-DE/i18n/
--dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/local/share/Lumina-DE/i18n/
-+dotrans.path=/usr/share/Lumina-DE/i18n/
-+dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/share/Lumina-DE/i18n/
-
- INSTALLS += target dotrans
---- lumina-desktop-0.6.2.14.orig/lumina-screenshot/lumina-screenshot.pro
-+++ lumina-desktop-0.6.2.14/lumina-screenshot/lumina-screenshot.pro
-@@ -2,7 +2,7 @@
- QT += core gui
-
- TARGET = lumina-screenshot
--target.path = /usr/local/bin
-+target.path = /usr/bin
-
- TEMPLATE = app
-
-@@ -13,7 +13,7 @@ HEADERS += MainUI.h
-
- FORMS += MainUI.ui
-
--INCLUDEPATH += ../libLumina /usr/local/include
-+INCLUDEPATH += ../libLumina /usr/include
-
- linux-g++-64 {
- LIBS += -L../libLumina -lLuminaUtils
-@@ -86,10 +86,10 @@ TRANSLATIONS = i18n/lumina-screenshot_a
- i18n/lumina-screenshot_zh_TW.ts \
- i18n/lumina-screenshot_zu.ts
-
--dotrans.path=/usr/local/share/Lumina-DE/i18n/
--dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/local/share/Lumina-DE/i18n/
-+dotrans.path=/usr/share/Lumina-DE/i18n/
-+dotrans.extra=cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm $(INSTALL_ROOT)/usr/share/Lumina-DE/i18n/
-
- desktop.files=lumina-screenshot.desktop
--desktop.path=/usr/local/share/applications/
-+desktop.path=/usr/share/applications/
-
- INSTALLS += target dotrans desktop
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 3e4f0969..00000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-01-change-prefix.diff
diff --git a/debian/rules b/debian/rules
index 8d0192e4..af0d1ff9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,16 @@ export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
- dh $@
+ dh $@
+
+build:
+ qmake-qt4
+ (cd libLumina && qmake-qt4)
+ (cd lumina-config && qmake-qt4)
+ (cd lumina-desktop && qmake-qt4)
+ (cd lumina-fm && qmake-qt4)
+ (cd lumina-open && qmake-qt4)
+ (cd lumina-screenshot && qmake-qt4)
override_dh_auto_clean:
-$(MAKE) distclean
diff --git a/libLumina/LuminaOS-Linux.cpp b/libLumina/LuminaOS-Linux.cpp
index af8c740f..bdd16fac 100644
--- a/libLumina/LuminaOS-Linux.cpp
+++ b/libLumina/LuminaOS-Linux.cpp
@@ -26,9 +26,25 @@ QString LOS::QtConfigShortcut(){ return "/usr/bin/qtconfig-qt4"; } //qtconfig bi
QStringList LOS::ExternalDevicePaths(){
//Returns: QStringList[<type>::::<filesystem>::::<path>]
//Note: <type> = [USB, HDRIVE, DVD, SDCARD, UNKNOWN]
-
- //Not implemented yet for Linux
- return QStringList();
+ QStringList devs = LUtils::getCmdOutput("mount");
+ //Now check the output
+ for(int i=0; i<devs.length(); i++){
+ if(devs[i].startsWith("/dev/")){
+ QString type = devs[i].section(" on ",0,0);
+ type.remove("/dev/");
+ //Determine the type of hardware device based on the dev node
+ if(type.startsWith("sd")){ type = "HDRIVE"; }
+ else if(type.startsWith("sr")){ type="DVD"; }
+ else{ type = "UNKNOWN"; }
+ //Now put the device in the proper output format
+ devs[i] = type+"::::"+devs[i].section("(",1,1).section(",",0,0)+"::::"+devs[i].section(" on ",1,50).section("(",0,0).simplified();
+ }else{
+ //invalid device - remove it from the list
+ devs.removeAt(i);
+ i--;
+ }
+ }
+ return devs;
}
//Read screen brightness information
diff --git a/libLumina/LuminaOS-kFreeBSD.cpp b/libLumina/LuminaOS-kFreeBSD.cpp
new file mode 100644
index 00000000..7a5f783e
--- /dev/null
+++ b/libLumina/LuminaOS-kFreeBSD.cpp
@@ -0,0 +1,156 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2014, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifdef __FreeBSD_kernel__
+#ifndef __FreeBSD__
+// The above two checks should make sure that we are on a
+// operating system using the FreeBSD kernel without actually being
+// on FreeBSD. That probably means Debian's kFreeBSD port.
+#include <QDebug>
+#include "LuminaOS.h"
+#include <unistd.h>
+#include <stdio.h> // Needed for BUFSIZ
+
+//can't read xbrightness settings - assume invalid until set
+static int screenbrightness = -1;
+
+//OS-specific prefix(s)
+QString LOS::AppPrefix(){ return "/usr/"; } //Prefix for applications
+QString LOS::SysPrefix(){ return "/usr/"; } //Prefix for system
+
+//OS-specific application shortcuts (*.desktop files)
+QString LOS::ControlPanelShortcut(){ return ""; } //system control panel
+QString LOS::AppStoreShortcut(){ return ""; } //graphical app/pkg manager
+QString LOS::QtConfigShortcut(){ return "/usr/bin/qtconfig-qt4"; } //qtconfig binary (NOT *.desktop file)
+
+// ==== ExternalDevicePaths() ====
+QStringList LOS::ExternalDevicePaths(){
+ //Returns: QStringList[<type>::::<filesystem>::::<path>]
+ //Note: <type> = [USB, HDRIVE, DVD, SDCARD, UNKNOWN]
+ QStringList devs = LUtils::getCmdOutput("mount");
+ //Now check the output
+ for(int i=0; i<devs.length(); i++){
+ if(devs[i].startsWith("/dev/")){
+ QString type = devs[i].section(" on ",0,0);
+ type.remove("/dev/");
+ //Determine the type of hardware device based on the dev node
+ if(type.startsWith("da")){ type = "USB"; }
+ else if(type.startsWith("ada")){ type = "HDRIVE"; }
+ else if(type.startsWith("mmsd")){ type = "SDCARD"; }
+ else if(type.startsWith("cd")||type.startsWith("acd")){ type="DVD"; }
+ else{ type = "UNKNOWN"; }
+ //Now put the device in the proper output format
+ devs[i] = type+"::::"+devs[i].section("(",1,1).section(",",0,0)+"::::"+devs[i].section(" on ",1,50).section("(",0,0).simplified();
+ }else{
+ //invalid device - remove it from the list
+ devs.removeAt(i);
+ i--;
+ }
+ }
+ return devs;
+}
+
+//Read screen brightness information
+int LOS::ScreenBrightness(){
+ //Returns: Screen Brightness as a percentage (0-100, with -1 for errors)
+ if(screenbrightness==-1){
+ if(QFile::exists(QDir::homePath()+"/.lumina/.currentxbrightness")){
+ int val = LUtils::readFile(QDir::homePath()+"/.lumina/.currentxbrightness").join("").simplified().toInt();
+ screenbrightness = val;
+ }
+ }
+ return screenbrightness;
+
+}
+
+//Set screen brightness
+void LOS::setScreenBrightness(int percent){
+ //ensure bounds
+ if(percent<0){percent=0;}
+ else if(percent>100){ percent=100; }
+ // float pf = percent/100.0; //convert to a decimel
+ //Run the command
+ QString cmd = "xbacklight -set %1";
+ // cmd = cmd.arg( QString::number( int(65535*pf) ) );
+ cmd = cmd.arg( QString::number( percent ) );
+ int ret = LUtils::runCmd(cmd);
+ //Save the result for later
+ if(ret!=0){ screenbrightness = -1; }
+ else{ screenbrightness = percent; }
+ LUtils::writeFile(QDir::homePath()+"/.lumina/.currentxbrightness", QStringList() << QString::number(screenbrightness), true);
+
+}
+
+//Read the current volume
+int LOS::audioVolume(){ //Returns: audio volume as a percentage (0-100, with -1 for errors)
+ return -1; // not available on kFreeBSD yet
+}
+
+//Set the current volume
+void LOS::setAudioVolume(int percent){
+ return;
+}
+
+//Change the current volume a set amount (+ or -)
+void LOS::changeAudioVolume(int percentdiff){
+ int old_volume = audioVolume();
+ int new_volume = old_volume + percentdiff;
+ if (new_volume < 0)
+ new_volume = 0;
+ if (new_volume > 100)
+ new_volume = 100;
+ qDebug() << "Setting new volume to: " << new_volume;
+ setAudioVolume(new_volume);
+}
+
+//Check if a graphical audio mixer is installed
+bool LOS::hasMixerUtility(){
+ return QFile::exists("/usr/bin/pavucontrol");
+}
+
+//Launch the graphical audio mixer utility
+void LOS::startMixerUtility(){
+ QProcess::startDetached("/usr/bin/pavucontrol");
+}
+
+//Check for user system permission (shutdown/restart)
+bool LOS::userHasShutdownAccess(){
+ return true; //not implemented yet
+}
+
+//System Shutdown
+void LOS::systemShutdown(){ //start poweroff sequence
+ QProcess::startDetached("shutdown -h now");
+}
+
+//System Restart
+void LOS::systemRestart(){ //start reboot sequence
+ QProcess::startDetached("shutdown -r now");
+}
+
+//Battery Availability
+bool LOS::hasBattery(){
+ return false;
+}
+
+//Battery Charge Level
+int LOS::batteryCharge(){ //Returns: percent charge (0-100), anything outside that range is counted as an error
+ return -1;
+}
+
+//Battery Charging State
+bool LOS::batteryIsCharging(){
+ return false;
+}
+
+//Battery Time Remaining
+int LOS::batterySecondsLeft(){ //Returns: estimated number of seconds remaining
+ return 0; //not implemented yet for Linux
+}
+
+#endif
+#endif
+
diff --git a/libLumina/libLumina.pro b/libLumina/libLumina.pro
index b7655bb7..45a310b7 100644
--- a/libLumina/libLumina.pro
+++ b/libLumina/libLumina.pro
@@ -21,7 +21,8 @@ SOURCES += LuminaXDG.cpp \
LuminaOS-FreeBSD.cpp \
LuminaOS-DragonFly.cpp \
LuminaOS-OpenBSD.cpp \
- LuminaOS-Linux.cpp
+ LuminaOS-Linux.cpp \
+ LuminaOS-kFreeBSD.cpp
# new OS support can be added here
INCLUDEPATH += /usr/local/include
diff --git a/lumina-config/lumina-config.pro b/lumina-config/lumina-config.pro
index f79deeef..766448d8 100644
--- a/lumina-config/lumina-config.pro
+++ b/lumina-config/lumina-config.pro
@@ -22,10 +22,12 @@ FORMS += mainUI.ui \
INCLUDEPATH += ../libLumina /usr/local/include
-linux-* {
- LIBS += -L../libLumina -lLuminaUtils
-} else {
- LIBS += -L../libLumina -lLuminaUtils -lQtSolutions_SingleApplication-head
+ LIBS += -L../libLumina -lLuminaUtils
+freebsd-* {
+ LIBS += -lQtSolutions_SingleApplication-head
+}
+openbsd-g++4 {
+ LIBS += -lQtSolutions_SingleApplication-head
}
openbsd-g++4 {
diff --git a/lumina-config/main.cpp b/lumina-config/main.cpp
index c6525014..d1cb2004 100644
--- a/lumina-config/main.cpp
+++ b/lumina-config/main.cpp
@@ -1,9 +1,8 @@
#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>
@@ -16,7 +15,7 @@
int main(int argc, char ** argv)
{
- #ifdef __linux
+ #ifndef __FreeBSD__
QApplication a(argc, argv);
#else
QtSingleApplication a(argc, argv);
diff --git a/lumina-fm/lumina-fm.pro b/lumina-fm/lumina-fm.pro
index e004de17..afe46993 100644
--- a/lumina-fm/lumina-fm.pro
+++ b/lumina-fm/lumina-fm.pro
@@ -24,10 +24,9 @@ FORMS += MainUI.ui \
INCLUDEPATH += ../libLumina /usr/local/include
-linux-* {
LIBS += -L../libLumina -lLuminaUtils
-} else {
- LIBS += -L../libLumina -lLuminaUtils -lQtSolutions_SingleApplication-head
+freebsd-* {
+ LIBS += -lQtSolutions_SingleApplication-head
}
openbsd-g++4 {
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
diff --git a/lumina-screenshot/lumina-screenshot.pro b/lumina-screenshot/lumina-screenshot.pro
index df783ad0..7b647386 100644
--- a/lumina-screenshot/lumina-screenshot.pro
+++ b/lumina-screenshot/lumina-screenshot.pro
@@ -15,10 +15,9 @@ FORMS += MainUI.ui
INCLUDEPATH += ../libLumina /usr/local/include
-linux-* {
LIBS += -L../libLumina -lLuminaUtils
-} else {
- LIBS += -L../libLumina -lLuminaUtils -lQtSolutions_SingleApplication-head
+freebsd-* {
+ LIBS += -lQtSolutions_SingleApplication-head
}
openbsd-g++4 {
bgstack15