Bug 1224940 - nodejs-electron: on Fedora it is not possible to save or open files
Summary: nodejs-electron: on Fedora it is not possible to save or open files
Status: RESOLVED UPSTREAM
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: 3rd party software (show other bugs)
Version: unspecified
Hardware: x86-64 Fedora
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Bruno Pitrus
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 12:00 UTC by Rudolf E. Steiner
Modified: 2024-05-22 20:32 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot (created after file selection and confirmation) (7.90 KB, image/png)
2024-05-22 16:58 UTC, Rudolf E. Steiner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf E. Steiner 2024-05-22 12:00:10 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!
Comment 1 Bruno Pitrus 2024-05-22 13:51:22 UTC
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.
Comment 2 Rudolf E. Steiner 2024-05-22 14:26:40 UTC
(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"}
Comment 3 Bruno Pitrus 2024-05-22 16:37:32 UTC
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)
Comment 4 Rudolf E. Steiner 2024-05-22 16:55:15 UTC
(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.
Comment 5 Rudolf E. Steiner 2024-05-22 16:58:31 UTC
Created attachment 875033 [details]
screenshot (created after file selection and confirmation)
Comment 6 Bruno Pitrus 2024-05-22 17:19:49 UTC
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.
Comment 7 Rudolf E. Steiner 2024-05-22 17:34:35 UTC
(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.
Comment 8 Rudolf E. Steiner 2024-05-22 19:48:23 UTC
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.
Comment 9 Bruno Pitrus 2024-05-22 19:50:50 UTC
(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)
Comment 10 Rudolf E. Steiner 2024-05-22 20:32:08 UTC
Thank you very much for your efforts.

I reported the error under "https://github.com/electron/electron/issues/42250".