Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Trash portal broken for all Flatpak apps (xdg-desktop-portal 1.20.4 regression)

Đang mở Phù hợp với người mới
#2,856 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux
Lĩnh vực
operating-systems

Hướng nghiên cứu

Bắt đầu với phiên bản xdg-desktop-portal đã cài đặt và hồi quy upstream được theo dõi trong issue 1972. Tái hiện bằng lệnh flatpak run --command=gio trash được liệt kê và kiểm tra đầu ra verbose của /usr/lib/xdg-desktop-portal; hoàn tất có nghĩa là cập nhật hoặc backport fix và xác nhận rằng các ứng dụng sandboxed có thể chuyển tệp vào thùng rác.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Your system information

  • Steam client version: 1788652215
  • SteamOS version: 3.8.28
  • Opted into Steam client beta?: No
  • Opted into SteamOS beta?: No
  • Have you checked for updates in Settings > System?: Yes

Please describe your issue in as much detail as possible:
Flatpak apps cannot move files to the trash. Any trash request through the org.freedesktop.portal.Trash portal fails with "Trash portal failed on ". This affects files in /home as well as on the SD card, so it is not filesystem- or permission-specific. Trashing the same files on the host with gio trash works normally.

Running the portal in verbose mode (/usr/lib/xdg-desktop-portal -v -r) logs:
XDP: Handling TrashFile
XDP: Failed trashing file: Failed getting the parent fd

This matches the upstream regression introduced by the fix for GHSA-rqr9-jwwf-wxgj, tracked at: https://github.com/flatpak/xdg-desktop-portal/issues/1972
Affected upstream versions include 1.20.4 and 1.21.1; it is reported fixed in 1.21.2, and distributions such as Ubuntu have backported the fix.

Installed packages:
xdg-desktop-portal 1.20.4-1.1
xdg-desktop-portal-kde 6.4.3-2
glib2 2.84.3-1
Test app runtime: org.gnome.Platform/x86_64/51 (io.github.cboxdoerfer.FSearch)

Steps for reproducing this issue:

  1. Install any Flatpak app with filesystem access, e.g. io.github.cboxdoerfer.FSearch
  2. touch ~/testfile
  3. flatpak run --command=gio io.github.cboxdoerfer.FSearch trash ~/testfile
  4. Observe "gio: file:///home/deck/testfile: Trash portal failed on /home/deck/testfile"
  5. Outside the sandbox, gio trash ~/testfile succeeds.

Expected: the file is moved to the trash.
Requested fix: update xdg-desktop-portal to a release containing the upstream fix, or backport it to 1.20.x.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.6k
Fork
88
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ValveSoftware/SteamOS

Tất cả issue của ValveSoftware/SteamOS

Issue tương tự

Thêm issue về Operating Systems

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.