tamga-vdesktop 1.1.5 → 1.1.6

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/dist/cli.js CHANGED
@@ -2664,6 +2664,14 @@ var LinuxAppSession = class {
2664
2664
  let finalCmd = this.command;
2665
2665
  const baseBin = path6.basename(finalCmd.split(/\s+/)[0] || "");
2666
2666
  if (baseBin === "firefox" || baseBin === "firefox-esr") {
2667
+ if (!extraNewWindow) {
2668
+ for (const stale of [".startup-incomplete", ".parentlock", "lock"]) {
2669
+ try {
2670
+ fs6.rmSync(path6.join(profileDir, stale), { force: true });
2671
+ } catch {
2672
+ }
2673
+ }
2674
+ }
2667
2675
  const userJsPath = path6.join(profileDir, "user.js");
2668
2676
  fs6.writeFileSync(
2669
2677
  userJsPath,
@@ -2675,6 +2683,8 @@ var LinuxAppSession = class {
2675
2683
  'user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);',
2676
2684
  'user_pref("datareporting.policy.dataSubmissionEnabled", false);',
2677
2685
  'user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);',
2686
+ 'user_pref("toolkit.startup.max_resumed_crashes", -1);',
2687
+ 'user_pref("browser.sessionstore.resume_from_crash", false);',
2678
2688
  'user_pref("browser.startup.homepage", "https://www.google.com");',
2679
2689
  'user_pref("browser.tabs.inTitlebar", 0);',
2680
2690
  'user_pref("general.smoothScroll", false);',
@@ -2695,6 +2705,14 @@ var LinuxAppSession = class {
2695
2705
  );
2696
2706
  finalCmd = extraNewWindow ? `${finalCmd} -profile "${profileDir}" --new-window about:home` : `${finalCmd} -profile "${profileDir}" --width=${this.width} --height=${this.height}`;
2697
2707
  } else if (this.needsNoSandbox || ["code", "antigravity", "chromium", "chromium-browser", "google-chrome", "google-chrome-stable"].includes(baseBin)) {
2708
+ if (!extraNewWindow) {
2709
+ for (const stale of ["SingletonLock", "SingletonCookie", "SingletonSocket"]) {
2710
+ try {
2711
+ fs6.rmSync(path6.join(profileDir, stale), { force: true });
2712
+ } catch {
2713
+ }
2714
+ }
2715
+ }
2698
2716
  const extraFlags = [];
2699
2717
  if (isRoot && !finalCmd.includes("--no-sandbox")) {
2700
2718
  extraFlags.push("--no-sandbox");
@@ -3027,7 +3045,7 @@ var LinuxAppSession = class {
3027
3045
  fs6.rmSync(this.tempDir, { recursive: true, force: true });
3028
3046
  } catch {
3029
3047
  }
3030
- }, 500);
3048
+ }, 1200);
3031
3049
  if (this.pulseSinkName) {
3032
3050
  try {
3033
3051
  execSync2(
@@ -3401,7 +3419,7 @@ var VSCodeServerManager = class {
3401
3419
  };
3402
3420
 
3403
3421
  // server/index.ts
3404
- var TAMGA_VERSION = "1.1.5";
3422
+ var TAMGA_VERSION = "1.1.6";
3405
3423
  var MIME_MAP = {
3406
3424
  html: "text/html; charset=utf-8",
3407
3425
  htm: "text/html; charset=utf-8",
package/dist/server.js CHANGED
@@ -2655,6 +2655,14 @@ var LinuxAppSession = class {
2655
2655
  let finalCmd = this.command;
2656
2656
  const baseBin = path6.basename(finalCmd.split(/\s+/)[0] || "");
2657
2657
  if (baseBin === "firefox" || baseBin === "firefox-esr") {
2658
+ if (!extraNewWindow) {
2659
+ for (const stale of [".startup-incomplete", ".parentlock", "lock"]) {
2660
+ try {
2661
+ fs6.rmSync(path6.join(profileDir, stale), { force: true });
2662
+ } catch {
2663
+ }
2664
+ }
2665
+ }
2658
2666
  const userJsPath = path6.join(profileDir, "user.js");
2659
2667
  fs6.writeFileSync(
2660
2668
  userJsPath,
@@ -2666,6 +2674,8 @@ var LinuxAppSession = class {
2666
2674
  'user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);',
2667
2675
  'user_pref("datareporting.policy.dataSubmissionEnabled", false);',
2668
2676
  'user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);',
2677
+ 'user_pref("toolkit.startup.max_resumed_crashes", -1);',
2678
+ 'user_pref("browser.sessionstore.resume_from_crash", false);',
2669
2679
  'user_pref("browser.startup.homepage", "https://www.google.com");',
2670
2680
  'user_pref("browser.tabs.inTitlebar", 0);',
2671
2681
  'user_pref("general.smoothScroll", false);',
@@ -2686,6 +2696,14 @@ var LinuxAppSession = class {
2686
2696
  );
2687
2697
  finalCmd = extraNewWindow ? `${finalCmd} -profile "${profileDir}" --new-window about:home` : `${finalCmd} -profile "${profileDir}" --width=${this.width} --height=${this.height}`;
2688
2698
  } else if (this.needsNoSandbox || ["code", "antigravity", "chromium", "chromium-browser", "google-chrome", "google-chrome-stable"].includes(baseBin)) {
2699
+ if (!extraNewWindow) {
2700
+ for (const stale of ["SingletonLock", "SingletonCookie", "SingletonSocket"]) {
2701
+ try {
2702
+ fs6.rmSync(path6.join(profileDir, stale), { force: true });
2703
+ } catch {
2704
+ }
2705
+ }
2706
+ }
2689
2707
  const extraFlags = [];
2690
2708
  if (isRoot && !finalCmd.includes("--no-sandbox")) {
2691
2709
  extraFlags.push("--no-sandbox");
@@ -3018,7 +3036,7 @@ var LinuxAppSession = class {
3018
3036
  fs6.rmSync(this.tempDir, { recursive: true, force: true });
3019
3037
  } catch {
3020
3038
  }
3021
- }, 500);
3039
+ }, 1200);
3022
3040
  if (this.pulseSinkName) {
3023
3041
  try {
3024
3042
  execSync2(
@@ -3392,7 +3410,7 @@ var VSCodeServerManager = class {
3392
3410
  };
3393
3411
 
3394
3412
  // server/index.ts
3395
- var TAMGA_VERSION = "1.1.5";
3413
+ var TAMGA_VERSION = "1.1.6";
3396
3414
  var MIME_MAP = {
3397
3415
  html: "text/html; charset=utf-8",
3398
3416
  htm: "text/html; charset=utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamga-vdesktop",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "TamgaVDesktop — Self-hostable Linux Virtual Desktop OS platform with native web shell, real Linux terminal, and seamless native Linux GUI apps (Firefox, VS Code, Antigravity).",