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

Show in folder API

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • GUI: Other
    • 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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes