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

QFile::moveToTrash does not work for Flatpak

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes