You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use xdg-desktop-portal to define my file chooser for the applications that support it. Note that I do not use Flatpak.
This works with all my other applications: I am able to select and open files or directories when the file chooser is called by the application. This includes my web browsers, and therefore it works with Element web. This issue only happens with Element desktop, which leads me to believe that it comes from it.
Issue with Element desktop
Element desktop seems to support xdg-desktop-portal: trying to send a file brings up the file picker called through xdg-desktop-portal. However, Element desktop requests a directory instead of files.
I have reproduced this on two different computers with almost identical configurations.
Set the environment variable GTK_USE_PORTAL=1 (possibly unnecessary).
Start Element Desktop.
In any room, click on the 'Attachement' button.
Outcome
Expected
The file chooser called by Element desktop should request one (possibly several) files.
What happened instead
The file chooser requests a directory. I can only select directories and, unsurprisingly, selecting a directory causes the action to fail. I am unable to send attachments with Element Desktop.
My thoughts
According the relevant documentation, it looks like the OpenFile method is called with the boolean option directory set to True.
This is confirmed by looking at the process spawning my file chooser: it passes the flags directory and multiple both set to True. The latter is expected (although not necessary); the former is the issue.
Operating system
Arch Linux
Application version
1.11.38
How did you install the app?
Arch Linux package repository
Homeserver
matrix.org
Will you send logs?
Yes.
P.S. Logs sent.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Configuration
I use xdg-desktop-portal to define my file chooser for the applications that support it. Note that I do not use Flatpak.
This works with all my other applications: I am able to select and open files or directories when the file chooser is called by the application. This includes my web browsers, and therefore it works with Element web. This issue only happens with Element desktop, which leads me to believe that it comes from it.
Issue with Element desktop
Element desktop seems to support xdg-desktop-portal: trying to send a file brings up the file picker called through xdg-desktop-portal. However, Element desktop requests a directory instead of files.
I have reproduced this on two different computers with almost identical configurations.
Steps to reproduce
xdg-desktop-portal
along with a backend.GTK_USE_PORTAL=1
(possibly unnecessary).Outcome
Expected
The file chooser called by Element desktop should request one (possibly several) files.
What happened instead
The file chooser requests a directory. I can only select directories and, unsurprisingly, selecting a directory causes the action to fail. I am unable to send attachments with Element Desktop.
My thoughts
According the relevant documentation, it looks like the
OpenFile
method is called with the boolean optiondirectory
set toTrue
.This is confirmed by looking at the process spawning my file chooser: it passes the flags
directory
andmultiple
both set toTrue
. The latter is expected (although not necessary); the former is the issue.Operating system
Arch Linux
Application version
1.11.38
How did you install the app?
Arch Linux package repository
Homeserver
matrix.org
Will you send logs?
Yes.
P.S. Logs sent.
The text was updated successfully, but these errors were encountered: