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

QFile::moveToTrash does not work for Flatpak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.0
    • Core: I/O
    • All Flatpak applications
    • Linux/Wayland, Linux/X11

    Description

      As per flatpak/flatpak#1253, currently QFile::moveToTrash will detect the wrong Trash folder for Flatpak applications (it will detect $HOME/.var/app/$APP_ID/data/Trash instead), resulting sometimes in an rename error because rename(2) does not work across bind mounts.

      To fix this, probably Qt needs to use the XDG Trash Portal to trash files.

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              mick235711 Mick Li
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes