Trash portal broken for all Flatpak apps (xdg-desktop-portal 1.20.4 regression)
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:
- Install any Flatpak app with filesystem access, e.g. io.github.cboxdoerfer.FSearch
- touch ~/testfile
- flatpak run --command=gio io.github.cboxdoerfer.FSearch trash ~/testfile
- Observe "gio: file:///home/deck/testfile: Trash portal failed on /home/deck/testfile"
- Outside the sandbox,
gio trash ~/testfilesucceeds.
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/SteamOS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ValveSoftware/SteamOS#2983 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ValveSoftware/SteamOS#2927 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ValveSoftware/SteamOS#2875 · 1 bình luận ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repairĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ValveSoftware/SteamOS#2829 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
ValveSoftware/SteamOS#1743 · 1 bình luận · 2 reaction ·
Tất cả issue của ValveSoftware/SteamOS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
yetone/magpie#3737 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
sameerasw/essentials#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
easy enhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
lacs-project/sysknife#682 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
C-bug needs-triage O-UEFI T-libs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aristocratos/btop#1945 ·
Maintainer thường phản hồi trong vòng 2 ngày