diff options
author | Michael Neumann <mneumann@ntecs.de> | 2014-09-11 13:01:26 +0200 |
---|---|---|
committer | Michael Neumann <mneumann@ntecs.de> | 2014-09-11 13:01:26 +0200 |
commit | edfecb808a099f6e3d69ab6268dadf36271189e3 (patch) | |
tree | a8c157c0976928a0b7e667bf0d145a2ba751d90f /libLumina/LuminaXDG.cpp | |
parent | Fix a bug where a directory was not getting the input file added to the lumin... (diff) | |
download | lumina-edfecb808a099f6e3d69ab6268dadf36271189e3.tar.gz lumina-edfecb808a099f6e3d69ab6268dadf36271189e3.tar.bz2 lumina-edfecb808a099f6e3d69ab6268dadf36271189e3.zip |
Port Lumina to DragonFly
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r-- | libLumina/LuminaXDG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp index 8a9696de..e325329e 100644 --- a/libLumina/LuminaXDG.cpp +++ b/libLumina/LuminaXDG.cpp @@ -269,7 +269,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ for(int i=0; i<xdd.length(); i++){ paths << xdd[i]+"/icons"; } - #ifdef __FreeBSD__ + #if defined(__FreeBSD__) || defined(__DragonFly__) paths << "/usr/local/share/pixmaps"; #endif #ifdef __linux__ @@ -287,7 +287,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ //Try to load the icon from /usr/local/share/pixmaps if( ico.isNull() ){ //qDebug() << "Could not find icon:" << iconName; - #ifdef __FreeBSD__ + #if defined(__FreeBSD__) || defined(__DragonFly__) QDir base("/usr/local/share/pixmaps"); #endif #ifdef __linux__ @@ -295,7 +295,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ #endif QStringList matches = base.entryList(QStringList() << "*"+iconName+"*", QDir::Files | QDir::NoDotAndDotDot, QDir::Name); if( !matches.isEmpty() ){ - #ifdef __FreeBSD__ + #if defined(__FreeBSD__) || defined(__DragonFly__) ico = QIcon("/usr/local/share/pixmaps/"+matches[0]); //just use the first match #endif #ifdef __linux__ @@ -305,7 +305,7 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ //Fallback on a manual search over the default theme directories (hicolor, then oxygen) if( QDir::searchPaths("fallbackicons").isEmpty() ){ //Set the fallback search paths - #ifdef __FreeBSD__ + #if defined(__FreeBSD__) || defined(__DragonFly__) QString base = "/usr/local/share/icons/"; #endif #ifdef __linux__ |