fix: select item no longer work via filemanager1 dbus
This commit is contained in:
parent
5534753786
commit
de394389e9
|
@ -751,13 +751,10 @@ void MainWindow::on_actionLocateInFileManager_triggered()
|
|||
QDBusInterface fm1Iface(QStringLiteral("org.freedesktop.FileManager1"),
|
||||
QStringLiteral("/org/freedesktop/FileManager1"),
|
||||
QStringLiteral("org.freedesktop.FileManager1"));
|
||||
if (!fm1Iface.isValid()) {
|
||||
QDesktopServices::openUrl(folderUrl);
|
||||
return;
|
||||
}
|
||||
fm1Iface.setTimeout(500);
|
||||
fm1Iface.callWithArgumentList(QDBus::Block, "ShowItems", {
|
||||
QStringList{currentFileUrl.toString()},
|
||||
QString()
|
||||
QString::number(QDateTime::currentSecsSinceEpoch())
|
||||
});
|
||||
#else
|
||||
QDesktopServices::openUrl(folderUrl);
|
||||
|
|
Loading…
Reference in New Issue
Block a user