Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125106

Show in folder API

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • GUI: Other
    • None

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ilya-fedin Ilya Fedin
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes