diff options
-rw-r--r-- | lumina-config/mainUI.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index b773925c..110149f2 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -7,6 +7,8 @@ #include "mainUI.h" #include "ui_mainUI.h" //the designer *.ui file +#include <LuminaOS.h> + MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ ui->setupUi(this); //load the designer file this->setWindowIcon( LXDG::findIcon("preferences-desktop-display","") ); @@ -224,12 +226,7 @@ void MainUI::setupMenus(){ ui->combo_session_wloc->addItem( tr("Cascade"), "CascadePlacement"); ui->combo_session_wloc->addItem( tr("Underneath Mouse"), "UnderMousePlacement"); ui->combo_session_wtheme->clear(); - #if defined(__FreeBSD__) || defined(__DragonFly__) - QDir fbdir("/usr/local/share/fluxbox/styles"); - #endif - #ifdef __linux__ - QDir fbdir("/usr/share/fluxbox/styles"); - #endif + QDir fbdir(LOS::AppPrefix()+"share/fluxbox/styles"); QStringList fbstyles = fbdir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); for(int i=0; i<fbstyles.length(); i++){ ui->combo_session_wtheme->addItem(fbstyles[i], fbdir.absoluteFilePath(fbstyles[i])); |