Trash portal broken for all Flatpak apps (xdg-desktop-portal 1.20.4 regression)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- linux
- Área
- operating-systems
Línea de trabajo
Comienza con la versión instalada de xdg-desktop-portal y la regresión upstream registrada en el issue 1972. Reprodúcela usando el comando flatpak run --command=gio trash indicado e inspecciona la salida detallada de /usr/lib/xdg-desktop-portal; se considera terminado cuando se haya actualizado o retroportado el fix y se haya confirmado que las aplicaciones en sandbox pueden mover archivos a la papelera.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 2.6k
- Forks
- 86
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ValveSoftware/SteamOS
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ValveSoftware/SteamOS#2927 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ValveSoftware/SteamOS#2875 · 1 comentario ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repairAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
ValveSoftware/SteamOS#2829 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
ValveSoftware/SteamOS#1743 · 1 comentario · 2 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
ValveSoftware/SteamOS#2960 ·
Todos los issues de ValveSoftware/SteamOS
Issues similares
-
Mark ignored Mac OS partitions RecoveryOSContainer and iBootSystemContainerPosiblemente ocupada @meven la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
storaged-project/udisks#1559 ·
-
agent:Windows security testing windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 3 días
-
component:ktuner
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
agentic-os-org/ANOLISA#8597 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
HID windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
libusb/libusb#1977 · 2 comentarios ·
Los mantenedores suelen responder en 3 días