aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaXDG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libLumina/LuminaXDG.cpp')
-rw-r--r--libLumina/LuminaXDG.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp
index 8d210abe..ff231034 100644
--- a/libLumina/LuminaXDG.cpp
+++ b/libLumina/LuminaXDG.cpp
@@ -273,7 +273,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__
@@ -291,7 +291,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__
@@ -299,7 +299,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__
@@ -309,7 +309,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__
bgstack15