Skip to content

chore: Update electron to version 40#193

Open
Dadadah wants to merge 3 commits intostoatchat:mainfrom
Dadadah:chore/electron40
Open

chore: Update electron to version 40#193
Dadadah wants to merge 3 commits intostoatchat:mainfrom
Dadadah:chore/electron40

Conversation

@Dadadah
Copy link
Copy Markdown
Member

@Dadadah Dadadah commented Mar 18, 2026

Electron v40 natively supports Wayland on linux.

This PR also updates the development flatpak build as electron 39 changed app indicators (tray icons) on flatpak builds. I use the development flatpak for testing, so I had to add some sockets to it to get things to work right.

Closes #191
Closes #182

Dadadah added 3 commits March 17, 2026 20:34
This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
@insertish
Copy link
Copy Markdown
Contributor

Not sure if it's me but explodes on Nix:

✔ Running preMake hook
✔ Making distributables
  ✔ Making a zip distributable for linux/x64 [45s]
  ✔ Making a flatpak distributable for linux/x64 [3m58s]
  ✔ Making a deb distributable for linux/x64 [46s]
✔ Running postMake hook
  › Artifacts available at: /home/insert/Projects/stoat-desktop/out/make
insert@framework ~/P/stoat-desktop (chore/electron40)> pnpm install:flatpak

> stoat-desktop@1.3.0 install:flatpak /home/insert/Projects/stoat-desktop
> flatpak --user install out/make/flatpak/x86_64/chat.stoat.stoat-desktop_stable_x86_64.flatpak


chat.stoat.stoat-desktop permissions:
    ipc     network     fallback-x11     pulseaudio     wayland     x11    devices    dri    file access [1]    dbus access [2]

    [1] home, xdg-pictures:ro, xdg-run/pipewire-0, xdg-run/speech-dispatcher, xdg-videos:ro
    [2] com.canonical.AppMenu.Registrar, com.canonical.Unity, com.canonical.indicator.application, org.freedesktop.Notifications, org.freedesktop.ScreenSaver, org.kde.StatusNotifierWatcher


        ID                                  Branch            Op            Remote                         Download
 1. [✓] chat.stoat.stoat-desktop            stable            i             stoat-desktop-origin           0 bytes

Installation complete.
insert@framework ~/P/stoat-desktop (chore/electron40)> pnpm run:flatpak

> stoat-desktop@1.3.0 run:flatpak /home/insert/Projects/stoat-desktop
> flatpak run --socket=session-bus chat.stoat.stoat-desktop

[3:0406/173746.012381:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
(node:3) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `stoat-desktop --trace-deprecation ...` to show where the warning was created)
[3:0406/173746.241512:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:249] Missing X server or $DISPLAY
[3:0406/173746.241527:ERROR:ui/aura/env.cc:257] The platform failed to initialize.  Exiting.
/app/bin/electron-wrapper: line 3:     3 Segmentation fault         (core dumped) zypak-wrapper "stoat-desktop" "$@"
 ELIFECYCLE  Command failed with exit code 139.
insert@framework ~/P/stoat-desktop (chore/electron40) [SIGSEGV]> 

@Dadadah
Copy link
Copy Markdown
Member Author

Dadadah commented Apr 6, 2026

Odd, I'll see if I run into the same issue on X11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants