Skip to content

Conversation

aksestok
Copy link
Contributor

@aksestok aksestok commented Oct 3, 2025

Inspired by flathub/org.signal.Signal#965.

Fixes #356.

@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@aksestok
Copy link
Contributor Author

aksestok commented Oct 3, 2025

I've verified the fix works locally, but maybe some of the other variable checks for Wayland can be removed / altered / refined. I didn't dare touch them 🙏

@flathubbot
Copy link
Contributor

Test build succeeded. To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/216158/com.slack.Slack.flatpakref

@cdonatom
Copy link

cdonatom commented Oct 6, 2025

hi @aksestok , what's the plan? are you merging this PR or rebasing the electron version to this one? electron/electron#48298

@aksestok
Copy link
Contributor Author

aksestok commented Oct 6, 2025

I'm not a maintainer, so I can't merge anything unfortunately. The upstream Electron fix needs to be bumped by Slack themselves.

@aksestok
Copy link
Contributor Author

aksestok commented Oct 6, 2025

Maybe @AKoskovich can take a look? 🙏

@AKoskovich
Copy link
Collaborator

Can verify this in a bit, traveling at the moment

@russelltg
Copy link

Even with this, I don't see a GUI at all (window opens and has correct title etc, just no contents). On sway. Just going to stick with 734c1fac156edb431cfec1f49dfd38088b2c394640973de7ed4f4d4ea1593d6c for now...

@aeroevan
Copy link

aeroevan commented Oct 9, 2025

This build does seem to work for rhel10/gnome 47

@czhang03
Copy link
Contributor

czhang03 commented Oct 14, 2025

It seems like text-input-v3 is enabled out-of-the box for chromium 140 as well ( https://chromium-review.googlesource.com/c/chromium/src/+/6441739 ), so said flag could also be removed.

EDIT: preliminary testing seems to suggest the text-input-v3 flag is indeed redundant now.

@AKoskovich
Copy link
Collaborator

@aksestok Sorry for the delay, just got back. Is there a reason to add XDG_SESSION_TYPE to the check for Wayland? If the Wayland socket is not enabled then the app will fail to launch if the host has a Wayland session, and that's the default state so this will break the majority of installs.

[4:1014/201908.420441:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:197] Failed to connect to Wayland display: No such file or directory (2)
[4:1014/201908.420459:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
[4:1014/201908.421559:ERROR:ui/aura/env.cc:257] The platform failed to initialize.  Exiting.

We could enable the wayland socket by default, but I'm still waiting on Electron to fix some regressions detailed in some other issues here still.

FYI removed the change to the check and now the app launches with the wayland socket enabled and disabled, and it uses wayland when it is enabled.

Note that it seems like Electron has a new wayland regression, on Fedora 42 w/Wayland, I cannot drag the window around. It always pops up the window decoration menu regardless of left or right click.

@aksestok
Copy link
Contributor Author

No worries @AKoskovich 😊

@aksestok Sorry for the delay, just got back. Is there a reason to add XDG_SESSION_TYPE to the check for Wayland? [...]

No particular reason other than that's what was used in flathub/org.signal.Signal#965 (and it's the variable that Electron now is supposed to use to determine if it should launch on Wayland). I'll revert the change since it seems redundant with the current checks already in place.


It seems like text-input-v3 is enabled out-of-the box for chromium 140 as well ( https://chromium-review.googlesource.com/c/chromium/src/+/6441739 ), so said flag could also be removed.

@czhang03 I haven't tested this nor have any opinion on removal. Happy to make the change in the PR if a collaborator finds it usefeul / necessary before merging.

@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

Test build succeeded. To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/219650/com.slack.Slack.flatpakref

@czhang03
Copy link
Contributor

Happy to make the change in the PR if a collaborator finds it usefeul / necessary before merging.

It will basically remove the need for a wayland check once slack updated its electron. If you push a version, I can help test to confirm input method still works.

@AKoskovich AKoskovich merged commit fb1f1e0 into flathub:master Oct 15, 2025
1 check passed
@aksestok aksestok deleted the fix-wayland branch October 15, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slack doesn't launch on Wayland post upstream Electron bump

7 participants