Add Symlink Support to Dolphin Overlay Plugin
#include <KIOCore/kfileitem.h>
#include <KIOCore/KFileItemListProperties>
#include <QtWidgets/QAction>
+#include <QtCore/QDir>
#include <QtCore/QTimer>
#include "ownclouddolphinpluginhelper.h"
auto url = urls.first();
if (!url.isLocalFile())
return {};
- auto localFile = url.toLocalFile();
+ QDir localPath(url.toLocalFile());
+ auto localFile = localPath.canonicalPath();
const auto paths = helper->paths();
if (!std::any_of(paths.begin(), paths.end(), [&](const QString &s) {
#include <KPluginFactory>
#include <QtNetwork/QLocalSocket>
#include <KIOCore/kfileitem.h>
+#include <QDir>
#include <QTimer>
#include "ownclouddolphinpluginhelper.h"
return QStringList();
if (!url.isLocalFile())
return QStringList();
- const QByteArray localFile = url.toLocalFile().toUtf8();
+ QDir localPath(url.toLocalFile());
+ const QByteArray localFile = localPath.canonicalPath().toUtf8();
helper->sendCommand(QByteArray("RETRIEVE_FILE_STATUS:" + localFile + "\n"));