Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Would be really nice to have API to open a file selected in system file manager (QDesktopServices::showInFolder(const QUrl &url)?). This could be implemented using org.freedesktop.FileManager1.ShowItems API and org.freedesktop.portal.OpenURI.OpenDirectory (ideally both should be implemented, FileManager1 taking the priority).
I was implementing this in application code for X11 just fine but now I have a trouble implementing that with Wayland as QWaylandWindow::requestXdgActivationToken and QGenericUnixServices::portalWindowIdentifier are private and without them it's not possible to present a possible dialog (in case of portal API) and open the file manager correctly (the dialog won't be modal, the file manager won't get focused if it's already running). If Qt doesn't want making those APIs public, please consider implementing this at least.