Skip to content

Commit

Permalink
[files] Proper freeBSD switches
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Sep 1, 2023
1 parent e2a3696 commit 3a140c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions files/src/fileitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ QString AbstractFileItem::inputActionText() const
QStringList AbstractFileItem::iconUrls() const
{
QStringList urls;
// if (mimeType().name ().startsWith("image"))
// urls << filePath();
//#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
urls << QString("xdg:%1").arg(mimeType().iconName());
urls << QString("xdg:%1").arg(mimeType().genericIconName());
//#endif
#endif
urls << QString("qfip:%1").arg(filePath());
return urls;
}
Expand Down
2 changes: 1 addition & 1 deletion files/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void Plugin::updateIndexItems()
ii.emplace_back(update_item, update_item->text());

// Add trash item
#if defined(Q_OS_LINUX)
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
auto trash_path = "trash:///";
#elif defined(Q_OS_MAC)
auto trash_path = QString("file://%1/.Trash").arg(QDir::homePath());
Expand Down

0 comments on commit 3a140c4

Please sign in to comment.