Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: application fails to access the file after file picker

Aperta
#6,494 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, linux

Direzione di ricerca

The report concerns the document portal path used after a file picker returns, so start with the portal and document-export code in the Flatpak source tree and reproduce with flatpak documents on a Sway setup using xdg-desktop-portal-gtk. The reporter has not identified the failing layer, so first determine whether the file is accessible from inside the sandbox. Done means a documented root cause and either a fix or a clear note on why the setup is unsupported.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs triage
Checklist
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).
Flatpak version

1.16.1

What Linux distribution are you using?

Alpine Linux

Linux distribution version

6.18.7-0-stable

What architecture are you using?

x86_64

How to reproduce
  • Use any flatpak program file picker
  • Select a file with the picker (here the GTK file chooser)
    -> the program fail to access the file
Expected Behavior

the program got access to the file, through the documents xdg portal

Actual Behavior

the program fails to access the file properly

Additional Information

The current DE is Sway + xdg-desktop-portal-gtk ( + xdg-desktop-portal-wlr ). I don't have any other issues with xdg portals.

I can list the new entry with flatpak documents. It effectively is associated to the application, link to an existing path in $XDG_RUNTIME_DIR/doc/xxxxx/xxxxx.jpg, but the program still got a problem accessing it. My XDG_RUNTIME_DIR is /run/user-1000.

Here Vesktop (a Discord tweaked front-end) fails with this error message. The preview of the image I'm trying to upload is empty.

https://minio.missbanal.net/putpub/02159554-5514-4895-8fed-7e652636bd98.png

Lingua principale
C
Stelle
5.1k
Fork
526
Merge medio
1g 16h
PR unite (30g)
32

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flatpak/flatpak

Tutte le issue di flatpak/flatpak

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.