Bugzilla – Bug 1224940
nodejs-electron: on Fedora it is not possible to save or open files
Last modified: 2024-05-22 20:32:08 UTC
In the current revision ("300") it is not possible to save attached files or attach files to messages on Fedora/KDE. Since the problem doesn't seem to exist on other systems, I suspect the problem lies in the compilation done here. If I'm wrong, please let me know and I'll open a bug report on GitHub!
I'm not sure what do you mean by “revision 300”. You can display the version of the relevant packages in console: > rpm -qv nodejs-electron signal-desktop Please also try running `signal-desktop` from console, try saving and attaching a file, and paste the log here.
(In reply to Bruno Pitrus from comment #1) > I'm not sure what do you mean by “revision 300”. I meant the revision listed under: https://build.opensuse.org/package/show/network:im:signal/signal-desktop > You can display the version of the relevant packages in console: > rpm -qv nodejs-electron signal-desktop | nodejs-electron-29.4.0-1.2.x86_64 | signal-desktop-7.9.0-1.1.x86_64 > Please also try running `signal-desktop` from console, try saving and > attaching a file, and paste the log here. When I try to attach a file to a message, no message appears in the log. When I try to save an attachment from a message, all that appears is: | {"level":30,"time":"2024-05-22T14:18:17.878Z","msg":"MainSQL: | slow query updateConversations duration=47ms"}
1.Do you have xdg-desktop-portal-kde installed? It is needed for proper support of file dialogs in Gtk-based apps in KDE. 2. Please run `electron https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file` and try to trigger the file input dialog from that page. (I'm trying to isolate whether this is a Signal problem vs Electron problem)
(In reply to Bruno Pitrus from comment #3) > 1.Do you have xdg-desktop-portal-kde installed? It is needed for proper > support of file dialogs in Gtk-based apps in KDE. Yes: | xdg-desktop-portal-kde-5.27.11-1.fc38.x86_64 > 2. Please run `electron > https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file` and > try to trigger the file input dialog from that page. (I'm trying to isolate > whether this is a Signal problem vs Electron problem) The file selection dialog appears. However, when a file is selected and the selection is confirmed, "no file selected" remains. There doesn't seem to be any communication about which file was selected. This is also how “signal-desktop” behaves. The file dialog appears, but the selection does not lead to any action after confirmation.
Created attachment 875033 [details] screenshot (created after file selection and confirmation)
Please download upstream electron binary from https://github.com/electron/electron/releases/download/v29.4.0/electron-v29.4.0-linux-x64.zip, unpack in some temporary directory and check whether the problem still appears.
(In reply to Bruno Pitrus from comment #6) > Please download upstream electron binary from > https://github.com/electron/electron/releases/download/v29.4.0/electron-v29. > 4.0-linux-x64.zip, unpack in some temporary directory and check whether the > problem still appears. If I run "./electron https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file" in the unpacked directory, it behaves identically. The file selection dialog appears, but the confirmation after the file selection leads to no result.
I ran the tests on a system with Fedora 39 and Gnome. Everything works there as expected. The problem seems to be limited to KDE.
(In reply to Rudolf E. Steiner from comment #7) > If I run "./electron > https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file" in the > unpacked directory, it behaves identically. The file selection dialog > appears, but the confirmation after the file selection leads to no result. Since the problem appears in upstream binaries, in is not specific to our Electron packaging. Please report it to the upstream bug tracker: https://github.com/electron/electron/issues/new/choose You can ping me in the report (I'm @brjsp on github)
Thank you very much for your efforts. I reported the error under "https://github.com/electron/electron/issues/42250".