Skip to content

Conversation

@xduugu
Copy link
Contributor

@xduugu xduugu commented Dec 11, 2025

vscode has been updated to Electron 39, which uses Wayland by default on systems where the environment variable XDG_SESSION_TYPE is set to wayland. On these systems, vscode no longer starts if the Wayland socket is not present.
This commit makes the Wayland socket available in the sandbox to fix this issue.

Based on #635, includes #573.

flathubbot and others added 4 commits December 10, 2025 20:40
The branch 25.08 of the base app `org.electronjs.Electron2.BaseApp` already
provides libsecret with the crypto backend disabled.

Ref: flathub/org.electronjs.Electron2.BaseApp@24e075e
vscode has been updated to Electron 39, which uses Wayland by default on
systems where the environment variable `XDG_SESSION_TYPE` is set to `wayland`.
On these systems, vscode no longer starts if the Wayland socket is not present.
This commit makes the Wayland socket available in the sandbox to fix this
issue.
Signed-off-by: Jose Castillo Lema <josecastillolema@gmail.com>
@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

Test build failed.

Help
  • bot, build - Restart the test build
  • bot, ping admins - Contact Flathub admins

@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/235167/com.visualstudio.code.flatpakref

Built for aarch64 and x86_64 architectures.

@xduugu
Copy link
Contributor Author

xduugu commented Dec 11, 2025

Works fine on wayland and also starts on X11 / Xwayland when enforcing it with this command:

flatpak run --env=XDG_SESSION_TYPE=x11 --nosocket=wayland com.visualstudio.code//test

Please have a look, @bilelmoussaoui.

@xduugu xduugu changed the title Update vscode 1.107.0 and fix startup on Wayland systems Update vscode to 1.107.0 and fix startup on Wayland systems Dec 11, 2025
- /share/gtk-doc
- '*.la'
modules:
# Provide libsecret without gcrypt, forcing it to use the D-Bus backend
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry. I forgot to add it to the PR description, it's only described in the commit message 8fed657:

Use libsecret from base app

The branch 25.08 of the base app org.electronjs.Electron2.BaseApp already
provides libsecret with the crypto backend disabled.

Ref: flathub/org.electronjs.Electron2.BaseApp@24e075e

So it's only a minor cleanup. I made the same change already in the signal app without any issues, but I can remove it from this PR if you prefer.

@bilelmoussaoui bilelmoussaoui merged commit 701663d into flathub:master Dec 11, 2025
1 check passed
@xduugu
Copy link
Contributor Author

xduugu commented Dec 12, 2025

Thanks for merging, @bilelmoussaoui, but apparently no build job was created for the merge commit. Do you happen to know how to manually trigger the build?

@bilelmoussaoui
Copy link
Member

The easiest way is to wait for another commit to happen, otherwise asking in flathub/flathub would help.

@xduugu
Copy link
Contributor Author

xduugu commented Dec 12, 2025

Thanks, I have created a ticket there: flathub/flathub#7303

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.

4 participants