deviceindicator: add path to look in for kdeconnect-handler.exe
This commit is contained in:
parent
d71af0134e
commit
4d868a2e92
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device)
|
|||
setWhenAvailable(device->hasPlugin(QStringLiteral("kdeconnect_photo")), [getPhoto](bool available) { getPhoto->setVisible(available); }, this);
|
||||
|
||||
// Send file
|
||||
const QString kdeconnectHandlerExecutable = QStandardPaths::findExecutable(QStringLiteral("kdeconnect-handler"));
|
||||
const QString kdeconnectHandlerExecutable = QStandardPaths::findExecutable(QStringLiteral("kdeconnect-handler"), { QCoreApplication::applicationDirPath() });
|
||||
if (!kdeconnectHandlerExecutable.isEmpty()) {
|
||||
auto handlerApp = addAction(QIcon::fromTheme(QStringLiteral("document-share")), i18n("Send a file/URL"));
|
||||
QObject::connect(handlerApp, &QAction::triggered, device, [device, kdeconnectHandlerExecutable] () {
|
||||
|
|
Loading…
Reference in a new issue