tabby-rdp 0.6.0 → 0.6.2

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.
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FreeRDPClipboard = void 0;
4
+ exports.freeRDPClipboardLog = freeRDPClipboardLog;
5
+ /** The log line for the clipboard a FreeRDP connection was set up with (IronRDP's says the same of pictures and files). */
6
+ function freeRDPClipboardLog(mode) {
7
+ return `clipboard: ${mode === 'both' ? 'both ways' : mode === 'fromRemote' ? 'only from the remote desktop (this computer\'s is neither read nor sent)'
8
+ : 'off (no clipboard channel)'}${mode === 'off' ? '' : '; FreeRDP shares text only'}`;
9
+ }
10
+ /**
11
+ * Text through FreeRDP's clipboard channel: the helper's 'P' message offers this computer's text to the server, and 'T'
12
+ * brings what the server's clipboard gets. As IronRDP's component does (see clipboard.ts), the clipboard goes only
13
+ * while the desktop has the focus (and Tabby is the app in front): this computer's is read then, every 100 ms, and only
14
+ * a change is sent; what the server's gets is written here then, or, from a desktop without the focus, the latest of
15
+ * it once it has the focus again; and it is remembered, so that it isn't sent straight back. A desktop in the
16
+ * background can't change this computer's clipboard. In view only no clipboard goes either way, and what the desktop's
17
+ * clipboard gets meanwhile is dropped.
18
+ *
19
+ * The ways are asked on every turn: a narrowing while connected (see RemoteDesktopService.applyClipboard) stops the
20
+ * sending at once, and is passed on to the helper (`narrow`), which drops what it was holding for the server.
21
+ * Nothing is read before `start`, once the connection is up. Pictures and files don't go through FreeRDP.
22
+ */
23
+ /** How soon the same text from the server counts as the same copy announced again (see FreeRDPClipboard.remote). */
24
+ const REPEATED_COPY_MS = 1500;
25
+ class FreeRDPClipboard {
26
+ constructor(io, ways,
27
+ /** `focused`: the desktop has the focus; `viewOnly`: it is in view only. */
28
+ focus, interval = 100, now = Date.now) {
29
+ this.io = io;
30
+ this.ways = ways;
31
+ this.focus = focus;
32
+ this.interval = interval;
33
+ this.now = now;
34
+ this.paused = false;
35
+ // The ways the connection was set up with, which the helper has.
36
+ this.told = ways();
37
+ }
38
+ /** Starts the turns, once the connection is up. */
39
+ start() {
40
+ this.timer ??= setInterval(() => this.poll(), this.interval);
41
+ }
42
+ /** One turn: passes a narrowing on, then, with the focus, writes what came and sends what changed here. */
43
+ poll() {
44
+ const ways = this.ways();
45
+ if (ways.toRemote !== this.told.toRemote || ways.fromRemote !== this.told.fromRemote) {
46
+ this.told = ways;
47
+ this.io.narrow(ways);
48
+ }
49
+ if (this.focus.viewOnly()) {
50
+ // Entering view only: what the helper still holds for the server is withdrawn, and the clipboard here is
51
+ // offered again once view only ends.
52
+ if (!this.paused) {
53
+ this.paused = true;
54
+ this.last = undefined;
55
+ if (ways.toRemote) {
56
+ this.io.send('');
57
+ }
58
+ }
59
+ this.pending = undefined;
60
+ return;
61
+ }
62
+ this.paused = false;
63
+ if (!this.focus.focused()) {
64
+ return;
65
+ }
66
+ if (this.pending !== undefined) {
67
+ const text = this.pending;
68
+ this.pending = undefined;
69
+ if (ways.fromRemote) {
70
+ this.last = text;
71
+ this.io.write(text);
72
+ }
73
+ }
74
+ if (!ways.toRemote) {
75
+ return;
76
+ }
77
+ let text;
78
+ try {
79
+ text = this.io.read();
80
+ }
81
+ catch {
82
+ return;
83
+ }
84
+ if (text !== this.last) {
85
+ this.last = text;
86
+ this.io.send(text);
87
+ }
88
+ }
89
+ /** Text the server's clipboard got, if it may come: written here now with the focus, else once it has it. */
90
+ remote(text) {
91
+ if (!this.ways().fromRemote || this.focus.viewOnly()) {
92
+ return;
93
+ }
94
+ // Windows can announce one copy more than once. The same text again within a moment is that copy, not a new
95
+ // one, and mustn't overwrite what was copied here in between.
96
+ const at = this.now();
97
+ if (this.lastRemote?.text === text && at - this.lastRemote.at < REPEATED_COPY_MS) {
98
+ return;
99
+ }
100
+ this.lastRemote = { text, at };
101
+ if (this.focus.focused()) {
102
+ this.pending = undefined;
103
+ this.last = text;
104
+ this.io.write(text);
105
+ }
106
+ else {
107
+ this.pending = text;
108
+ }
109
+ }
110
+ /** Sends this computer's clipboard text now, focus or not (paste to all), if it may go and not in view only. */
111
+ sendNow() {
112
+ if (!this.ways().toRemote || this.focus.viewOnly()) {
113
+ throw new Error('this computer\'s clipboard doesn\'t go to this desktop');
114
+ }
115
+ const text = this.io.read();
116
+ this.last = text;
117
+ this.io.send(text);
118
+ }
119
+ stop() {
120
+ clearInterval(this.timer);
121
+ this.timer = undefined;
122
+ }
123
+ }
124
+ exports.FreeRDPClipboard = FreeRDPClipboard;
@@ -114,6 +114,12 @@ class FreeRDPView {
114
114
  this.canvas.height = frame.screenHeight;
115
115
  this.fit();
116
116
  }
117
+ // The desktop is an opaque surface. Cached bitmaps can carry zero/partial alpha;
118
+ // letting the canvas interpret it hides valid RGB behind the tab's background.
119
+ // This tile is consumed here; cursor images have their own transparency path.
120
+ for (let i = 3; i < frame.rgba.length; i += 4) {
121
+ frame.rgba[i] = 255;
122
+ }
117
123
  this.canvas.getContext('2d').putImageData(new ImageData(frame.rgba, frame.width, frame.height), frame.x, frame.y);
118
124
  }
119
125
  setVisibility(visible) { this.visible = visible; if (!visible) {
@@ -122,6 +128,27 @@ class FreeRDPView {
122
128
  setReadOnly(readOnly) { this.readOnly = readOnly; if (readOnly) {
123
129
  this.releaseInput();
124
130
  } }
131
+ /** Whether the desktop has the focus: shown, focused, and Tabby the app in front. */
132
+ isFocused() { return this.visible && document.activeElement === this.element && document.hasFocus(); }
133
+ isViewOnly() { return this.readOnly; }
134
+ /** Paste to all: this computer's clipboard to the desktop, focus or not, as IronRDP's component does. */
135
+ async sendClipboardData() {
136
+ if (!this.clipboardSender) {
137
+ throw new Error('no clipboard channel');
138
+ }
139
+ this.clipboardSender();
140
+ }
141
+ /** Paste to all: Ctrl+V in whatever window is active on the desktop. */
142
+ ctrlV() {
143
+ if (this.readOnly) {
144
+ return;
145
+ }
146
+ const ctrl = { scan: SCANS.ControlLeft, text: '' }, v = { scan: SCANS.KeyV, text: '' };
147
+ this.key(ctrl, false);
148
+ this.key(v, false);
149
+ this.key(v, true);
150
+ this.key(ctrl, true);
151
+ }
125
152
  setKeyboardUnicodeMode(unicode) { this.unicode = unicode; }
126
153
  setScale(scale) { this.scale = scale; this.fit(); }
127
154
  resize(width, height, scale = 100) { this.native.send('R', (0, freerdp_1.numbers)(width, height, scale)); }
package/dist/gateway.js CHANGED
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.GatewaySignInError = void 0;
4
37
  exports.parseGateway = parseGateway;
@@ -18,7 +51,7 @@ exports.openThroughGateway = openThroughGateway;
18
51
  const crypto_1 = require("crypto");
19
52
  const net_1 = require("net");
20
53
  const stream_1 = require("stream");
21
- const tls = require("tls");
54
+ const tls = __importStar(require("tls"));
22
55
  const url_1 = require("url");
23
56
  const authorities_1 = require("./authorities");
24
57
  const byteQueue_1 = require("./byteQueue");
package/dist/header.js CHANGED
@@ -245,11 +245,5 @@ let HeaderControls = class HeaderControls {
245
245
  exports.HeaderControls = HeaderControls;
246
246
  exports.HeaderControls = HeaderControls = __decorate([
247
247
  (0, core_1.Injectable)({ providedIn: 'root' }),
248
- __metadata("design:paramtypes", [tabby_core_1.AppService,
249
- desktop_service_1.RemoteDesktopService,
250
- targets_1.RemoteTargets,
251
- tabby_core_1.PlatformService,
252
- keyboard_1.DesktopKeyboard,
253
- core_1.NgZone,
254
- help_1.RemoteDesktopHelp])
248
+ __metadata("design:paramtypes", [tabby_core_1.AppService, desktop_service_1.RemoteDesktopService, targets_1.RemoteTargets, tabby_core_1.PlatformService, keyboard_1.DesktopKeyboard, core_1.NgZone, help_1.RemoteDesktopHelp])
255
249
  ], HeaderControls);
@@ -390,7 +390,5 @@ let HeaderVisibility = class HeaderVisibility {
390
390
  exports.HeaderVisibility = HeaderVisibility;
391
391
  exports.HeaderVisibility = HeaderVisibility = __decorate([
392
392
  (0, core_1.Injectable)({ providedIn: 'root' }),
393
- __metadata("design:paramtypes", [desktop_service_1.RemoteDesktopService, tabby_core_1.ConfigService, core_1.NgZone,
394
- tabby_core_1.HostWindowService, header_1.HeaderControls,
395
- tabby_core_1.AppService])
393
+ __metadata("design:paramtypes", [desktop_service_1.RemoteDesktopService, tabby_core_1.ConfigService, core_1.NgZone, tabby_core_1.HostWindowService, header_1.HeaderControls, tabby_core_1.AppService])
396
394
  ], HeaderVisibility);
package/dist/index.js CHANGED
@@ -8,9 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  const core_1 = require("@angular/core");
13
- const tabby_core_1 = require("tabby-core");
16
+ const tabby_core_1 = __importDefault(require("tabby-core"));
14
17
  const tabby_core_2 = require("tabby-core");
15
18
  const tabby_settings_1 = require("tabby-settings");
16
19
  const tabby_terminal_1 = require("tabby-terminal");
package/dist/keyboard.js CHANGED
@@ -285,8 +285,5 @@ let DesktopKeyboard = class DesktopKeyboard {
285
285
  exports.DesktopKeyboard = DesktopKeyboard;
286
286
  exports.DesktopKeyboard = DesktopKeyboard = __decorate([
287
287
  (0, core_1.Injectable)({ providedIn: 'root' }),
288
- __metadata("design:paramtypes", [tabby_core_1.AppService,
289
- tabby_core_1.HotkeysService,
290
- desktop_service_1.RemoteDesktopService,
291
- core_1.NgZone])
288
+ __metadata("design:paramtypes", [tabby_core_1.AppService, tabby_core_1.HotkeysService, desktop_service_1.RemoteDesktopService, core_1.NgZone])
292
289
  ], DesktopKeyboard);
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.Helper = exports.CodedError = exports.PROTOCOL = void 0;
4
37
  exports.helperPath = helperPath;
@@ -11,8 +44,8 @@ exports.describeExit = describeExit;
11
44
  // in frames of their own, never in JSON. The helper's side is helper/internal/ipc; PROTOCOL says which version both
12
45
  // speak.
13
46
  const child_process_1 = require("child_process");
14
- const fs = require("fs");
15
- const path = require("path");
47
+ const fs = __importStar(require("fs"));
48
+ const path = __importStar(require("path"));
16
49
  const byteQueue_1 = require("./byteQueue");
17
50
  /** The version of the channel this plugin speaks (helper/internal/ipc's Protocol). */
18
51
  exports.PROTOCOL = 2;
@@ -95,11 +95,7 @@ exports.RDPTabComponent = RDPTabComponent = __decorate([
95
95
  // The idle message is built by hand, outside the template, so its styles can't be scoped to it.
96
96
  encapsulation: core_1.ViewEncapsulation.None,
97
97
  }),
98
- __metadata("design:paramtypes", [core_1.Injector,
99
- core_1.ElementRef,
100
- desktop_service_1.RemoteDesktopService,
101
- targets_1.RemoteTargets,
102
- core_1.NgZone])
98
+ __metadata("design:paramtypes", [core_1.Injector, core_1.ElementRef, desktop_service_1.RemoteDesktopService, targets_1.RemoteTargets, core_1.NgZone])
103
99
  ], RDPTabComponent);
104
100
  /** Reopens remote desktop tabs when Tabby restores its tabs (and for Duplicate). */
105
101
  let RDPTabRecovery = class RDPTabRecovery extends tabby_core_1.TabRecoveryProvider {
@@ -207,6 +203,16 @@ let RDPProfileSettingsComponent = class RDPProfileSettingsComponent {
207
203
  <div class="text-muted small">For older RDP servers or PAM login screens with missing text. May cause display artifacts.
208
204
  Applies on the next FreeRDP connection.</div>
209
205
  </div>` + `
206
+ <div class="mb-3">
207
+ <label>Bitmap caching (experimental)</label>
208
+ <select class="form-control" name="bitmapCache" aria-label="Bitmap caching (FreeRDP)">
209
+ <option value="">As in Settings › Remote Desktop</option>
210
+ <option value="on">Enable bitmap caching</option>
211
+ <option value="off">Disable bitmap caching</option>
212
+ </select>
213
+ <div class="text-muted small">For servers or PAM login screens with missing pictures or logos. May cause display artifacts.
214
+ Applies on the next FreeRDP connection.</div>
215
+ </div>` + `
210
216
  <div class="mb-3">
211
217
  <label>Drawing order checks (FreeRDP)</label>
212
218
  <select class="form-control" name="relaxOrderChecks" aria-label="Drawing order checks (FreeRDP)">
@@ -237,7 +243,7 @@ let RDPProfileSettingsComponent = class RDPProfileSettingsComponent {
237
243
  client.append(new Option(`As in Settings › Remote Desktop (${rdpClient_1.RDP_CLIENT_LABELS[desktop.settings().client]})`, ''), ...Object.entries(rdpClient_1.RDP_CLIENT_LABELS).map(([id, label]) => new Option(label, id)));
238
244
  client.value = (0, rdpClient_1.ownRDPClient)(o.client) ?? '';
239
245
  client.addEventListener('change', () => { o.client = (0, rdpClient_1.ownRDPClient)(client.value) ?? ''; });
240
- for (const key of ['glyphCache', 'relaxOrderChecks']) {
246
+ for (const key of ['glyphCache', 'bitmapCache', 'relaxOrderChecks']) {
241
247
  const choice = field(key);
242
248
  choice.value = o[key] === true ? 'on' : o[key] === false ? 'off' : '';
243
249
  choice.addEventListener('change', () => {
@@ -374,7 +380,7 @@ let RDPProfilesService = class RDPProfilesService extends tabby_core_1.QuickConn
374
380
  this.name = 'Remote desktop (RDP)';
375
381
  this.settingsComponent = RDPProfileSettingsComponent;
376
382
  this.configDefaults = {
377
- options: { host: '', port: 3389, kind: 'windows', username: '', domain: '', account: '', via: '', gateway: '', gatewayAccount: '', clipboard: '', client: '', glyphCache: null, relaxOrderChecks: null },
383
+ options: { host: '', port: 3389, kind: 'windows', username: '', domain: '', account: '', via: '', gateway: '', gatewayAccount: '', clipboard: '', client: '', glyphCache: null, bitmapCache: null, relaxOrderChecks: null },
378
384
  clearServiceMessagesOnConnect: false,
379
385
  };
380
386
  }
package/dist/releases.js CHANGED
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.ReleaseManager = exports.RELEASE_STATE_KEY = exports.RELEASES = exports.REGISTRY = void 0;
4
37
  exports.releaseVersion = releaseVersion;
@@ -6,7 +39,7 @@ exports.newer = newer;
6
39
  exports.registryJSON = registryJSON;
7
40
  exports.parseCatalog = parseCatalog;
8
41
  exports.publishedVersions = publishedVersions;
9
- const semver = require("semver");
42
+ const semver = __importStar(require("semver"));
10
43
  const rxjs_1 = require("rxjs");
11
44
  exports.REGISTRY = 'https://registry.npmjs.org/tabby-rdp';
12
45
  exports.RELEASES = 'https://github.com/meanaverage/tabby-rdp/releases';
@@ -1,8 +1,41 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.prepareRemoteDesktop = prepareRemoteDesktop;
4
- const fs = require("fs");
5
- const path = require("path");
37
+ const fs = __importStar(require("fs"));
38
+ const path = __importStar(require("path"));
6
39
  const desktops_1 = require("./desktops");
7
40
  const rdcleanpath_1 = require("./rdcleanpath");
8
41
  // Runs as the SSH user; needs no root. Prints exactly one `RD_OK port=N user=U pass=P cert=SHA256`,
@@ -367,6 +367,7 @@ let RemoteDesktopSettingsComponent = class RemoteDesktopSettingsComponent {
367
367
 
368
368
  <h5>FreeRDP compatibility</h5>
369
369
  ${this.toggleLine('glyphCache', 'Glyph caching (experimental)', 'For older RDP servers or PAM login screens with missing text. May cause display artifacts. Leave off unless a connection needs it; applies on reconnect. Each desktop can override it.')}
370
+ ${this.toggleLine('bitmapCache', 'Bitmap caching (experimental)', 'For servers or PAM login screens with missing pictures or logos. May cause display artifacts. Leave off unless a connection needs it; applies on reconnect. Each desktop can override it.')}
370
371
  ${this.toggleLine('relaxOrderChecks', 'Relax drawing order checks (FreeRDP)', 'For servers or PAM proxies that send drawing orders they did not announce. Try this if FreeRDP shows a black screen or reports an unannounced order. Applies on the next connection; IronRDP is unaffected. Each desktop can override it.')}
371
372
 
372
373
  <h5>Diagnostics</h5>
@@ -1268,13 +1269,5 @@ exports.RemoteDesktopSettingsComponent = RemoteDesktopSettingsComponent = __deco
1268
1269
  selector: 'remote-desktop-settings',
1269
1270
  template: '',
1270
1271
  }),
1271
- __metadata("design:paramtypes", [core_1.ElementRef,
1272
- desktop_service_1.RemoteDesktopService,
1273
- help_1.RemoteDesktopHelp,
1274
- tabby_core_1.ConfigService,
1275
- tabby_core_1.PlatformService,
1276
- core_1.Injector,
1277
- core_1.NgZone,
1278
- tabby_core_1.HotkeysService,
1279
- hostCompat_1.HostCompatibility])
1272
+ __metadata("design:paramtypes", [core_1.ElementRef, desktop_service_1.RemoteDesktopService, help_1.RemoteDesktopHelp, tabby_core_1.ConfigService, tabby_core_1.PlatformService, core_1.Injector, core_1.NgZone, tabby_core_1.HotkeysService, hostCompat_1.HostCompatibility])
1280
1273
  ], RemoteDesktopSettingsComponent);
package/dist/targets.js CHANGED
@@ -1,10 +1,43 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
2
18
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
19
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
20
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
21
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
22
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
23
  };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
8
41
  var __metadata = (this && this.__metadata) || function (k, v) {
9
42
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
43
  };
@@ -15,7 +48,7 @@ exports.desktopPaneOf = desktopPaneOf;
15
48
  exports.parseSSHCommand = parseSSHCommand;
16
49
  const core_1 = require("@angular/core");
17
50
  const child_process_1 = require("child_process");
18
- const net = require("net");
51
+ const net = __importStar(require("net"));
19
52
  const stream_1 = require("stream");
20
53
  const tabby_core_1 = require("tabby-core");
21
54
  const desktops_1 = require("./desktops");
@@ -119,7 +152,9 @@ class SystemSSHTarget {
119
152
  // signing in (its banners), for as long as the tunnel lasts, and the server decides how much.
120
153
  let stderr = '';
121
154
  child.stderr.on('data', d => { stderr = (stderr + d).slice(-4096); });
122
- const stream = stream_1.Duplex.from({ readable: child.stdout, writable: child.stdin });
155
+ // @types/node 26.6.5 omits the documented Node stream-pair overload; the runtime API is unchanged.
156
+ const fromPair = stream_1.Duplex.from;
157
+ const stream = fromPair({ readable: child.stdout, writable: child.stdin });
123
158
  stream.on('close', () => child.kill());
124
159
  child.on('exit', () => stream.destroy());
125
160
  // Fail fast if ssh can't connect (e.g. it would need a password).
package/dist/ui.js CHANGED
@@ -50,6 +50,8 @@ let RemoteDesktopConfig = class RemoteDesktopConfig extends tabby_core_1.ConfigP
50
50
  client: 'ironrdp',
51
51
  // FreeRDP only: experimental legacy text rendering, enabled only for connections that need it.
52
52
  glyphCache: false,
53
+ // FreeRDP only: experimental bitmap caching, enabled only for connections that need it.
54
+ bitmapCache: false,
53
55
  // FreeRDP only: accept drawing orders a server did not announce. Off unless a connection needs it.
54
56
  relaxOrderChecks: false,
55
57
  // Shareable session for SSH logins ('desk'): 'native' (trd-pty) or 'tmux' (earlier setup).
@@ -299,12 +301,7 @@ let RemoteDesktopContextMenu = class RemoteDesktopContextMenu extends tabby_core
299
301
  exports.RemoteDesktopContextMenu = RemoteDesktopContextMenu;
300
302
  exports.RemoteDesktopContextMenu = RemoteDesktopContextMenu = __decorate([
301
303
  (0, core_1.Injectable)(),
302
- __metadata("design:paramtypes", [desktop_service_1.RemoteDesktopService,
303
- targets_1.RemoteTargets,
304
- keyboard_1.DesktopKeyboard,
305
- help_1.RemoteDesktopHelp,
306
- tabby_core_1.AppService,
307
- updates_1.UpdateCheck])
304
+ __metadata("design:paramtypes", [desktop_service_1.RemoteDesktopService, targets_1.RemoteTargets, keyboard_1.DesktopKeyboard, help_1.RemoteDesktopHelp, tabby_core_1.AppService, updates_1.UpdateCheck])
308
305
  ], RemoteDesktopContextMenu);
309
306
  /** Radio items for the `remoteDesktop` settings; shared by the context menus and the header button. */
310
307
  function settingsMenu(desktop, pane, help) {
package/native/README.md CHANGED
@@ -5,14 +5,15 @@ desktop form have an override. An empty override follows Settings. Existing conf
5
5
  Changes apply on the next connection; use Reconnect to compare clients on the same desktop. Accounts, certificate
6
6
  trust and desktop identities are shared between the clients.
7
7
 
8
- **Settings › Remote Desktop › Settings › FreeRDP compatibility** groups two independent options:
8
+ **Settings › Remote Desktop › Settings › FreeRDP compatibility** groups three independent options:
9
9
 
10
10
  | Option | Default | Use |
11
11
  |---|---|---|
12
12
  | Glyph caching (experimental) | Off | Older RDP servers or PAM login screens that send text as cached glyphs. May cause display artifacts; enable only for connections that need it. |
13
+ | Bitmap caching (experimental) | Off | Servers or PAM login screens that draw pictures, such as a logo, from cached bitmaps. May cause display artifacts; enable only for connections that need it. |
13
14
  | Relax drawing order checks | Off | Servers or PAM proxies that send orders the client did not announce. Useful when the native log reports an unannounced order. |
14
15
 
15
- Each RDP profile or configured desktop can follow Settings, enable either option, or explicitly disable it.
16
+ Each RDP profile or configured desktop can follow Settings, enable any of these options, or explicitly disable it.
16
17
  Changes apply on the next FreeRDP connection. IronRDP uses its own graphics capabilities.
17
18
 
18
19
  An RDP profile tab's ellipsis/right-click menu also has **RDP client**: **Follow default**, **IronRDP**, or
@@ -24,8 +25,10 @@ The initial FreeRDP preview renders inside the Tabby tab and supports keyboard,
24
25
  screenshots, scaling, reconnect and the display-control channel. It uses the plugin's existing direct, SSH and RD
25
26
  Gateway transports, credential store and certificate/NLA prompts. Each attempt has its own native process.
26
27
 
27
- The preview does **not** yet implement clipboard, audio playback/capture, shared folders, or Hyper-V VMConnect.
28
- The supplied build uses native bitmap decoding (and the graphics pipeline for GNOME), with optional H.264 codecs
28
+ The preview shares clipboard **text** the ways the clipboard setting allows (both ways, only from the remote desktop, or
29
+ off, which leaves the clipboard channel out); in view only, no clipboard goes either way. It does **not** yet implement pictures and files on the clipboard, audio
30
+ playback/capture, shared folders, or Hyper-V VMConnect.
31
+ The supplied FreeRDP 3.33.0 build uses native bitmap decoding (and the graphics pipeline for GNOME), with optional H.264 codecs
29
32
  disabled. The macOS/Linux builds omit Kerberos/GSSAPI and use NTLM. Windows can use native SSPI; Kerberos and domain-policy behavior are not qualified. Hyper-V consoles that
30
33
  inherit the global client setting continue to use IronRDP. A synced global FreeRDP default also uses IronRDP on a computer without its native helper; an explicit desktop/profile choice still reports the missing build. It has not been benchmarked against IronRDP on Windows Server. Native decoding alone does not establish
31
34
  that this implementation will be faster: the cost of transferring pixels to the canvas also matters.
@@ -106,9 +109,18 @@ helper exists, they additionally run real native TLS/NLA certificate-rejection t
106
109
  routing cookie or authentication payload reaches a rejected peer. Real Windows Server performance and feature
107
110
  qualification require a dedicated test machine; these local protocol tests do not substitute for that work.
108
111
 
109
- The native protocol/security suite passes on macOS ARM64, Windows ARM64/x64 and Linux ARM64/x64. It exercises
112
+ With FreeRDP 3.33.0, the native protocol/security suite passes on macOS ARM64, Windows ARM64/x64 and Linux ARM64/x64. It exercises
110
113
  certificate/name/NLA rejection before credentials, the same CredSSP minimum version (5) as IronRDP, large trust stores, relay authentication, IPC and build inventories.
111
114
 
115
+ On macOS ARM64, synthetic TLS RDP connections with cached bitmap updates verify opaque colors, zero-alpha colors,
116
+ omitted alpha and genuine black pixels through the native helper and Tabby's canvas. These checks reproduce the
117
+ alpha rendering problem without a PAM server; they do not qualify a real Senhasegura connection.
118
+
119
+ The packaged FreeRDP 3.33.0 client on macOS ARM64 passes all 31 lifecycle checks against Windows Server 2022 x64:
120
+ desktop pixels, keyboard routing, live resize, input-burst recovery, view only, cleanup, cache-mode reconnects,
121
+ clipboard text in both directions and paste-to-all, switching to IronRDP, and Automatic header/reconnect stability.
122
+ The Windows Server 2025 coverage below predates the 3.33.0 upgrade.
123
+
112
124
  | Client | Live Windows Server 2025 coverage |
113
125
  |---|---|
114
126
  | macOS ARM64 | Earlier packed-plugin lifecycle coverage; current native protocol/security checks passed. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-rdp",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Windows and Linux remote desktops in Tabby, through SSH, direct RDP or RD Gateway. IronRDP with an experimental FreeRDP client.",
5
5
  "keywords": [
6
6
  "tabby-plugin",
@@ -43,14 +43,14 @@
43
43
  "test": "tsx test/run.ts"
44
44
  },
45
45
  "dependencies": {
46
- "semver": "7.8.5"
46
+ "semver": "7.8.6"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@tabby-rdp/freerdp-darwin-arm64": "0.6.0",
50
- "@tabby-rdp/freerdp-linux-arm64": "0.6.0",
51
- "@tabby-rdp/freerdp-linux-x64": "0.6.0",
52
- "@tabby-rdp/freerdp-win32-arm64": "0.6.0",
53
- "@tabby-rdp/freerdp-win32-x64": "0.6.0"
49
+ "@tabby-rdp/freerdp-darwin-arm64": "0.6.2",
50
+ "@tabby-rdp/freerdp-linux-arm64": "0.6.2",
51
+ "@tabby-rdp/freerdp-linux-x64": "0.6.2",
52
+ "@tabby-rdp/freerdp-win32-arm64": "0.6.2",
53
+ "@tabby-rdp/freerdp-win32-x64": "0.6.2"
54
54
  },
55
55
  "tabbyRdp": {
56
56
  "minimumTabbyVersion": "1.0.236",