Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge #7162: fix(linux): point Fedora and other non-Ubuntu Wayland desktops to a cloud desktop

milind-sonid7cc8afed93d
diff --cc src/lib/local-computer.test.ts
index 8860bdaed4,3bb8681608..5497ab4e29
--- a/src/lib/local-computer.test.ts
+++ b/src/lib/local-computer.test.ts
@@@ -107,7 -107,25 +107,25 @@@ describe("local computer UI eligibility
);
});
+ it("doesn't send Fedora and other non-Ubuntu Wayland desktops to Ubuntu on Xorg", () => {
+ const capabilities = {
+ host: { platform: "linux" as const },
+ localComputer: {
+ available: false,
+ enabled: false,
+ reasonCode: "linux-wayland-seat-safety-blocked",
+ ubuntuDesktop: false,
+ },
+ } as DesktopCapabilities;
+
+ expect(
+ localComputerDisabledReason({ capabilities, providerSupportsLocal: true }),
+ ).toBe(
+ "Bots can't use this computer in this kind of desktop session yet. If your sign-in screen offers an Xorg session, sign out and choose it. On a desktop without one, such as Fedora, use Cloud desktop or Private desktop instead.",
+ );
+ });
+
- it("tells a Mac older than macOS 13 to update, not to grant permissions", () => {
+ it("tells a Mac older than macOS 15 to update, not to grant permissions", () => {
const capabilities = {
host: { platform: "darwin" as const, label: "Mac" },
localComputer: { available: false, enabled: false, status: "unavailable", reasonCode: "macos-version-unsupported" },