@remcp/runtime 0.2.28 → 0.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remcp/runtime",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "description": "First-party ReMCP local device runtime: file, search, terminal and process tools over MCP for computers paired with ReMCP.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -936,6 +936,13 @@ function screenshotAdvice(attempts, { platform = process.platform, env = process
936
936
  if (!env.DISPLAY && !wayland) {
937
937
  return `This computer has no graphical session (no DISPLAY and no Wayland display), so there is nothing to capture — servers and containers usually have none.`;
938
938
  }
939
+ // GNOME on Wayland is its own case: Mutter does not expose wlr-screencopy, so grim cannot capture
940
+ // it at all, and the shell's own D-Bus method answers `Screenshot is not allowed` to anything that
941
+ // is not the screenshot portal. The tool that does work is gnome-screenshot (it goes through the
942
+ // portal and asks the person once), so the message names that instead of sending people to grim.
943
+ if (wayland && /gnome/i.test(String(env.XDG_CURRENT_DESKTOP || ''))) {
944
+ return `Could not capture the screen on GNOME Wayland (${attempts.join('; ') || 'no capture command ran'}). Install the screenshot helper once — \`sudo apt install gnome-screenshot\` (or the equivalent for this distribution) — and approve the permission dialog it shows; GNOME blocks the shell's own screenshot API for background processes, and grim cannot read a GNOME session.`;
945
+ }
939
946
  if (wayland) {
940
947
  return `Could not capture the screen on Wayland (${attempts.join('; ') || 'no capture command ran'}). Install \`grim\` (Wayland's capture tool) — X11 tools such as scrot or ImageMagick import cannot read a Wayland session.`;
941
948
  }