tabby-rdp 0.6.0-rc.3 → 0.6.0-rc.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0-rc.4
4
+
5
+ **Added**
6
+ - A default-off **Relax drawing order checks** option for FreeRDP, with overrides in RDP profiles and configured
7
+ desktops. It accepts drawing orders a server or PAM proxy did not announce, which may help diagnose black screens.
8
+ The option applies on reconnect and does not change IronRDP.
9
+
3
10
  ## 0.6.0-rc.3
4
11
 
5
12
  **Added**
@@ -2392,6 +2392,7 @@ let RemoteDesktopService = RemoteDesktopService_1 = class RemoteDesktopService {
2392
2392
  headerMinWidth: this.headerSize(store.headerMinWidth),
2393
2393
  headerMinHeight: this.headerSize(store.headerMinHeight),
2394
2394
  client: (0, rdpClient_1.rdpClient)(store.client),
2395
+ relaxOrderChecks: store.relaxOrderChecks === true,
2395
2396
  resize: ['live', 'reconnect', 'off'].includes(store.resize) ? store.resize : 'live',
2396
2397
  sharpness: store.sharpness === 'retina' ? 'retina' : 'standard',
2397
2398
  desk: store.desk === true,
@@ -3998,6 +3999,8 @@ let RemoteDesktopService = RemoteDesktopService_1 = class RemoteDesktopService {
3998
3999
  signal.addEventListener('abort', stop, { once: true });
3999
4000
  session.onConnectionEnd(stop);
4000
4001
  session.log.push(`client: ${rdpClient_1.RDP_CLIENT_LABELS.freerdp}`);
4002
+ const relaxOrderChecks = spec.relaxOrderChecks ?? this.settingsFor(session).relaxOrderChecks;
4003
+ session.log.push(`FreeRDP drawing order checks: ${relaxOrderChecks ? 'relaxed' : 'strict'}`);
4001
4004
  session.log.push('FreeRDP preview: clipboard, audio, microphone and shared folders are unavailable');
4002
4005
  session.clipboard = 'off';
4003
4006
  const [domain, username] = /^([^\\]+)\\(.+)$/.exec(endpoint.credentials.username)?.slice(1) ?? [endpoint.domain ?? spec.domain ?? '', endpoint.credentials.username];
@@ -4013,6 +4016,7 @@ let RemoteDesktopService = RemoteDesktopService_1 = class RemoteDesktopService {
4013
4016
  // compares the two clients on the same path (test/suites/pdu-trace.ts).
4014
4017
  pipeline: spec.kind === 'gnome' || process.env.TRD_FREERDP_PIPELINE === '1',
4015
4018
  autologon: spec.kind === 'xrdp',
4019
+ relaxOrderChecks,
4016
4020
  open: async (abort) => {
4017
4021
  const stream = gateway ? await this.throughGateway(target, spec, session, gateway, endpoint, abort) : await target.openTcp(endpoint.host, endpoint.port);
4018
4022
  if (abort.aborted) {
@@ -55,6 +55,11 @@ function askDesktop(pane, options) {
55
55
  </select>
56
56
  <select class="form-control" name="client" aria-label="RDP client" title="RDP client. Applies on the next connection."></select>
57
57
  <div class="text-muted small">FreeRDP preview: display and input; clipboard, sound and shared folders are unavailable.</div>` + `
58
+ <select class="form-control" name="relaxOrderChecks" aria-label="Relax drawing order checks (FreeRDP)" title="For a black screen or unannounced drawing order from a server or PAM proxy. Applies on the next FreeRDP connection.">
59
+ <option value="">Drawing order checks: as in Settings</option>
60
+ <option value="on">Relax drawing order checks (FreeRDP)</option>
61
+ <option value="off">Keep strict drawing order checks</option>
62
+ </select>` + `
58
63
  <select class="form-control" name="account" title="Saved accounts are added in Settings › Remote Desktop › Accounts"></select>
59
64
  <input class="form-control" name="username" placeholder="User name (optional; asked when connecting)" spellcheck="false">
60
65
  <input class="form-control" name="domain" placeholder="Domain (optional)" spellcheck="false">` + `
@@ -87,6 +92,7 @@ function askDesktop(pane, options) {
87
92
  const client = field('client');
88
93
  client.append(new Option('RDP client: as in Settings', ''), ...Object.entries(rdpClient_1.RDP_CLIENT_LABELS).map(([id, label]) => new Option(label, id)));
89
94
  client.value = (0, rdpClient_1.ownRDPClient)(initial.client) ?? '';
95
+ field('relaxOrderChecks').value = initial.relaxOrderChecks === true ? 'on' : initial.relaxOrderChecks === false ? 'off' : '';
90
96
  // A VM saved from the host's list is xrdp on the host's word (see xrdpFromHost), which is a choice of its own here:
91
97
  // kept as long as it is chosen, so that the desktop still asks before signing in without NLA. Any kind picked is
92
98
  // the user's, xrdp included.
@@ -213,8 +219,10 @@ function askDesktop(pane, options) {
213
219
  gatewayAccount: gatewayText && gatewayAccount.value || undefined,
214
220
  clipboard: clipboard.value || undefined,
215
221
  client: (0, rdpClient_1.ownRDPClient)(client.value),
222
+ relaxOrderChecks: field('relaxOrderChecks').value === 'on' ? true
223
+ : field('relaxOrderChecks').value === 'off' ? false : undefined,
216
224
  };
217
- for (const key of ['username', 'domain', 'account', 'wake', 'gateway', 'gatewayAccount', 'clipboard', 'client']) {
225
+ for (const key of ['username', 'domain', 'account', 'wake', 'gateway', 'gatewayAccount', 'clipboard', 'client', 'relaxOrderChecks']) {
218
226
  if (entry[key] === undefined) {
219
227
  delete entry[key];
220
228
  }
package/dist/desktops.js CHANGED
@@ -60,7 +60,8 @@ function specOf(extra) {
60
60
  // Its own clipboard sharing, or none (the setting's).
61
61
  const clipboard = (0, clipboard_1.ownClipboard)(extra?.clipboard);
62
62
  const client = (0, rdpClient_1.ownRDPClient)(extra?.client);
63
- const own = { ...clipboard ? { clipboard } : {}, ...client ? { client } : {} };
63
+ const own = { ...clipboard ? { clipboard } : {}, ...client ? { client } : {},
64
+ ...typeof extra?.relaxOrderChecks === 'boolean' ? { relaxOrderChecks: extra.relaxOrderChecks } : {} };
64
65
  const hyperv = (0, hyperv_1.vmId)(extra?.hyperv);
65
66
  if (hyperv) {
66
67
  return hyperVSpec(hyperv, configText(extra.name) || hyperv, {
package/dist/freerdp.js CHANGED
@@ -11,6 +11,7 @@ exports.hasFreeRDP = hasFreeRDP;
11
11
  exports.helperStopped = helperStopped;
12
12
  exports.ipcFrame = ipcFrame;
13
13
  exports.numbers = numbers;
14
+ exports.freeRDPStart = freeRDPStart;
14
15
  exports.freeRDPRelay = freeRDPRelay;
15
16
  exports.decodeNativeFrame = decodeNativeFrame;
16
17
  const child_process_1 = require("child_process");
@@ -117,6 +118,18 @@ function numbers(...values) {
117
118
  values.forEach((v, i) => out.writeUInt32BE(v >>> 0, i * 4));
118
119
  return out;
119
120
  }
121
+ /** The native helper's IPC 3 start message: six strings followed by six uint32 fields. */
122
+ function freeRDPStart(options, relay) {
123
+ const strings = [options.host, options.username, options.password, options.domain, '', relay.token];
124
+ const fields = strings.map(value => {
125
+ if (value.includes('\0')) {
126
+ throw new Error('FreeRDP settings cannot contain a null character');
127
+ }
128
+ const text = Buffer.from(value);
129
+ return Buffer.concat([numbers(text.length), text]);
130
+ });
131
+ return Buffer.concat([...fields, numbers(relay.port, options.width, options.height, +options.pipeline, +!!options.autologon, +!!options.relaxOrderChecks)]);
132
+ }
120
133
  /** Only a process holding the per-attempt token can open the SSH channel or gateway connection. */
121
134
  async function freeRDPRelay(open) {
122
135
  const token = (0, crypto_1.randomBytes)(32).toString('hex');
@@ -273,15 +286,7 @@ class FreeRDPProcess {
273
286
  }
274
287
  await new Promise((resolve, reject) => child.stdin.write(ipcFrame('A', authorities.subarray(at, at + 64 * 1024)), error => error ? reject(error) : resolve()));
275
288
  }
276
- const strings = [options.host, options.username, options.password, options.domain, '', this.relay.token];
277
- const fields = strings.map(value => {
278
- if (value.includes('\0')) {
279
- throw new Error('FreeRDP settings cannot contain a null character');
280
- }
281
- const text = Buffer.from(value);
282
- return Buffer.concat([numbers(text.length), text]);
283
- });
284
- this.send('S', Buffer.concat([...fields, numbers(this.relay.port, options.width, options.height, +options.pipeline, +!!options.autologon)]));
289
+ this.send('S', freeRDPStart(options, this.relay));
285
290
  }
286
291
  catch (error) {
287
292
  this.fail(error);
@@ -165,6 +165,16 @@ let RDPProfileSettingsComponent = class RDPProfileSettingsComponent {
165
165
  <div class="text-muted small">Applies on the next connection. FreeRDP preview supports display and input;
166
166
  clipboard, sound and shared folders are unavailable.</div>
167
167
  </div>` + `
168
+ <div class="mb-3">
169
+ <label>Drawing order checks (FreeRDP)</label>
170
+ <select class="form-control" name="relaxOrderChecks" aria-label="Drawing order checks (FreeRDP)">
171
+ <option value="">As in Settings › Remote Desktop</option>
172
+ <option value="on">Relax checks</option>
173
+ <option value="off">Keep strict checks</option>
174
+ </select>
175
+ <div class="text-muted small">Try relaxing checks if a server or PAM proxy causes a black screen or sends an unannounced drawing order.
176
+ Applies on the next FreeRDP connection; IronRDP is unaffected.</div>
177
+ </div>` + `
168
178
  <div class="mb-3">
169
179
  <label>Account</label>
170
180
  <select class="form-control" name="account"></select>
@@ -216,6 +226,11 @@ let RDPProfileSettingsComponent = class RDPProfileSettingsComponent {
216
226
  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)));
217
227
  client.value = (0, rdpClient_1.ownRDPClient)(o.client) ?? '';
218
228
  client.addEventListener('change', () => { o.client = (0, rdpClient_1.ownRDPClient)(client.value) ?? ''; });
229
+ const relaxOrderChecks = field('relaxOrderChecks');
230
+ relaxOrderChecks.value = o.relaxOrderChecks === true ? 'on' : o.relaxOrderChecks === false ? 'off' : '';
231
+ relaxOrderChecks.addEventListener('change', () => {
232
+ o.relaxOrderChecks = relaxOrderChecks.value === 'on' ? true : relaxOrderChecks.value === 'off' ? false : null;
233
+ });
219
234
  const accounts = desktop.accounts();
220
235
  const saved = field('account');
221
236
  const label = (a) => `${a.name} (${(0, accounts_1.signInName)(a)})`;
@@ -346,13 +361,13 @@ let RDPProfilesService = class RDPProfilesService extends tabby_core_1.QuickConn
346
361
  this.name = 'Remote desktop (RDP)';
347
362
  this.settingsComponent = RDPProfileSettingsComponent;
348
363
  this.configDefaults = {
349
- options: { host: '', port: 3389, kind: 'windows', username: '', domain: '', account: '', via: '', gateway: '', gatewayAccount: '', clipboard: '', client: '' },
364
+ options: { host: '', port: 3389, kind: 'windows', username: '', domain: '', account: '', via: '', gateway: '', gatewayAccount: '', clipboard: '', client: '', relaxOrderChecks: null },
350
365
  clearServiceMessagesOnConnect: false,
351
366
  };
352
367
  }
353
368
  async getBuiltinProfiles() {
354
- // No clipboard or client here: a new profile is made from a copy of this, and a value saved with it (even '', the
355
- // setting's) would hide the clipboard its group's or the type's defaults give it, which may well be narrower.
369
+ // No clipboard, client or drawing-order choice here: a new profile is made from a copy of this, and a value
370
+ // saved with it (even a "follow Settings" value) would hide what its group's or the type's defaults give it.
356
371
  // Left out, the profile follows those defaults (configDefaults has the key) until it is given one of its own.
357
372
  return [{
358
373
  id: `${targets_1.RDP_PROFILE_TYPE}:template`,
@@ -264,6 +264,7 @@ let RemoteDesktopSettingsComponent = class RemoteDesktopSettingsComponent {
264
264
  </select>
265
265
  </div>` + `
266
266
  <h5>Picture</h5>
267
+ ${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.')}
267
268
  <div class="form-line">
268
269
  <div class="header">
269
270
  <div class="title">When the pane is resized</div>
package/dist/ui.js CHANGED
@@ -48,6 +48,8 @@ let RemoteDesktopConfig = class RemoteDesktopConfig extends tabby_core_1.ConfigP
48
48
  headerMinWidth: 0,
49
49
  headerMinHeight: 0,
50
50
  client: 'ironrdp',
51
+ // FreeRDP only: accept drawing orders a server did not announce. Off unless a connection needs it.
52
+ relaxOrderChecks: false,
51
53
  // Shareable session for SSH logins ('desk'): 'native' (trd-pty) or 'tmux' (earlier setup).
52
54
  sessionBackend: 'native',
53
55
  // When the pane changes size: 'live' | 'reconnect' | 'off'.
package/native/README.md CHANGED
@@ -5,6 +5,10 @@ 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
+ **Relax drawing order checks** in Remote Desktop settings lets FreeRDP accept drawing orders a server or PAM proxy
9
+ did not announce. It is off by default; RDP profiles and configured desktops can override it. Try it when FreeRDP
10
+ shows a black screen or its log reports an unannounced order. It applies on reconnect and does not affect IronRDP.
11
+
8
12
  An RDP profile tab's ellipsis/right-click menu also has **RDP client**: **Follow default**, **IronRDP**, or
9
13
  **FreeRDP (experimental)**. The checkmark shows the saved next-connection choice; **Current session** names the
10
14
  client already running. Changing the choice offers **Reconnect to apply** or **Keep current session**, without
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-rdp",
3
- "version": "0.6.0-rc.3",
3
+ "version": "0.6.0-rc.4",
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",
@@ -46,11 +46,11 @@
46
46
  "ws": "8.21.3"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@tabby-rdp/freerdp-darwin-arm64": "0.6.0-rc.3",
50
- "@tabby-rdp/freerdp-linux-arm64": "0.6.0-rc.3",
51
- "@tabby-rdp/freerdp-linux-x64": "0.6.0-rc.3",
52
- "@tabby-rdp/freerdp-win32-arm64": "0.6.0-rc.3",
53
- "@tabby-rdp/freerdp-win32-x64": "0.6.0-rc.3"
49
+ "@tabby-rdp/freerdp-darwin-arm64": "0.6.0-rc.4",
50
+ "@tabby-rdp/freerdp-linux-arm64": "0.6.0-rc.4",
51
+ "@tabby-rdp/freerdp-linux-x64": "0.6.0-rc.4",
52
+ "@tabby-rdp/freerdp-win32-arm64": "0.6.0-rc.4",
53
+ "@tabby-rdp/freerdp-win32-x64": "0.6.0-rc.4"
54
54
  },
55
55
  "tabbyRdp": {
56
56
  "minimumTabbyVersion": "1.0.236",