tamga-vdesktop 1.0.0 → 1.0.1

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
@@ -2455,21 +2455,25 @@ var LinuxAppSession = class {
2455
2455
  const baseBin = path6.basename(finalCmd.split(/\s+/)[0] || "");
2456
2456
  if (baseBin === "firefox" || baseBin === "firefox-esr") {
2457
2457
  const userJsPath = path6.join(profileDir, "user.js");
2458
- if (!fs6.existsSync(userJsPath)) {
2459
- fs6.writeFileSync(
2460
- userJsPath,
2461
- [
2462
- 'user_pref("browser.shell.checkDefaultBrowser", false);',
2463
- 'user_pref("browser.aboutwelcome.enabled", false);',
2464
- 'user_pref("datareporting.policy.firstRunURL", "");',
2465
- 'user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);',
2466
- 'user_pref("browser.tabs.inTitlebar", 0);',
2467
- 'user_pref("browser.download.dir", ' + JSON.stringify(path6.join(this.desktopDataRoot, "vfs", "Downloads")) + ");",
2468
- 'user_pref("browser.download.folderList", 2);'
2469
- ].join("\n") + "\n",
2470
- "utf-8"
2471
- );
2472
- }
2458
+ fs6.writeFileSync(
2459
+ userJsPath,
2460
+ [
2461
+ 'user_pref("browser.shell.checkDefaultBrowser", false);',
2462
+ 'user_pref("browser.aboutwelcome.enabled", false);',
2463
+ 'user_pref("trailhead.firstrun.didSeeAboutWelcome", true);',
2464
+ 'user_pref("datareporting.policy.firstRunURL", "");',
2465
+ 'user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);',
2466
+ 'user_pref("datareporting.policy.dataSubmissionEnabled", false);',
2467
+ 'user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);',
2468
+ 'user_pref("browser.startup.homepage", "https://www.google.com");',
2469
+ 'user_pref("browser.tabs.inTitlebar", 0);',
2470
+ 'user_pref("gfx.webrender.software", true);',
2471
+ 'user_pref("gfx.x11-egl.force-disabled", true);',
2472
+ 'user_pref("browser.download.dir", ' + JSON.stringify(path6.join(this.desktopDataRoot, "vfs", "Downloads")) + ");",
2473
+ 'user_pref("browser.download.folderList", 2);'
2474
+ ].join("\n") + "\n",
2475
+ "utf-8"
2476
+ );
2473
2477
  finalCmd = `${finalCmd} --no-remote -profile "${profileDir}" --width=${this.width} --height=${this.height}`;
2474
2478
  } else if (this.needsNoSandbox || ["code", "antigravity", "chromium", "chromium-browser", "google-chrome"].includes(baseBin)) {
2475
2479
  const extraFlags = [];
@@ -2529,6 +2533,8 @@ var LinuxAppSession = class {
2529
2533
  "image2pipe",
2530
2534
  "-vcodec",
2531
2535
  "mjpeg",
2536
+ "-pix_fmt",
2537
+ "yuvj420p",
2532
2538
  "-q:v",
2533
2539
  String(this.quality),
2534
2540
  "-"
@@ -2686,7 +2692,7 @@ var LinuxDisplayBridge = class {
2686
2692
  };
2687
2693
 
2688
2694
  // server/index.ts
2689
- var TAMGA_VERSION = "1.0.0";
2695
+ var TAMGA_VERSION = "1.0.1";
2690
2696
  var MIME_MAP = {
2691
2697
  html: "text/html; charset=utf-8",
2692
2698
  htm: "text/html; charset=utf-8",
@@ -109,6 +109,10 @@ def fit_windows(display_str: str, width: int, height: int) -> None:
109
109
  ["wmctrl", "-i", "-r", wid, "-e", f"0,0,0,{width},{height}"],
110
110
  env=env, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, timeout=1.0
111
111
  )
112
+ subprocess.run(
113
+ ["wmctrl", "-i", "-a", wid],
114
+ env=env, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, timeout=1.0
115
+ )
112
116
  except Exception:
113
117
  try:
114
118
  wid = subprocess.check_output(
package/dist/server.js CHANGED
@@ -2446,21 +2446,25 @@ var LinuxAppSession = class {
2446
2446
  const baseBin = path6.basename(finalCmd.split(/\s+/)[0] || "");
2447
2447
  if (baseBin === "firefox" || baseBin === "firefox-esr") {
2448
2448
  const userJsPath = path6.join(profileDir, "user.js");
2449
- if (!fs6.existsSync(userJsPath)) {
2450
- fs6.writeFileSync(
2451
- userJsPath,
2452
- [
2453
- 'user_pref("browser.shell.checkDefaultBrowser", false);',
2454
- 'user_pref("browser.aboutwelcome.enabled", false);',
2455
- 'user_pref("datareporting.policy.firstRunURL", "");',
2456
- 'user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);',
2457
- 'user_pref("browser.tabs.inTitlebar", 0);',
2458
- 'user_pref("browser.download.dir", ' + JSON.stringify(path6.join(this.desktopDataRoot, "vfs", "Downloads")) + ");",
2459
- 'user_pref("browser.download.folderList", 2);'
2460
- ].join("\n") + "\n",
2461
- "utf-8"
2462
- );
2463
- }
2449
+ fs6.writeFileSync(
2450
+ userJsPath,
2451
+ [
2452
+ 'user_pref("browser.shell.checkDefaultBrowser", false);',
2453
+ 'user_pref("browser.aboutwelcome.enabled", false);',
2454
+ 'user_pref("trailhead.firstrun.didSeeAboutWelcome", true);',
2455
+ 'user_pref("datareporting.policy.firstRunURL", "");',
2456
+ 'user_pref("datareporting.policy.dataSubmissionPolicyBypassNotification", true);',
2457
+ 'user_pref("datareporting.policy.dataSubmissionEnabled", false);',
2458
+ 'user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);',
2459
+ 'user_pref("browser.startup.homepage", "https://www.google.com");',
2460
+ 'user_pref("browser.tabs.inTitlebar", 0);',
2461
+ 'user_pref("gfx.webrender.software", true);',
2462
+ 'user_pref("gfx.x11-egl.force-disabled", true);',
2463
+ 'user_pref("browser.download.dir", ' + JSON.stringify(path6.join(this.desktopDataRoot, "vfs", "Downloads")) + ");",
2464
+ 'user_pref("browser.download.folderList", 2);'
2465
+ ].join("\n") + "\n",
2466
+ "utf-8"
2467
+ );
2464
2468
  finalCmd = `${finalCmd} --no-remote -profile "${profileDir}" --width=${this.width} --height=${this.height}`;
2465
2469
  } else if (this.needsNoSandbox || ["code", "antigravity", "chromium", "chromium-browser", "google-chrome"].includes(baseBin)) {
2466
2470
  const extraFlags = [];
@@ -2520,6 +2524,8 @@ var LinuxAppSession = class {
2520
2524
  "image2pipe",
2521
2525
  "-vcodec",
2522
2526
  "mjpeg",
2527
+ "-pix_fmt",
2528
+ "yuvj420p",
2523
2529
  "-q:v",
2524
2530
  String(this.quality),
2525
2531
  "-"
@@ -2677,7 +2683,7 @@ var LinuxDisplayBridge = class {
2677
2683
  };
2678
2684
 
2679
2685
  // server/index.ts
2680
- var TAMGA_VERSION = "1.0.0";
2686
+ var TAMGA_VERSION = "1.0.1";
2681
2687
  var MIME_MAP = {
2682
2688
  html: "text/html; charset=utf-8",
2683
2689
  htm: "text/html; charset=utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamga-vdesktop",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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).",
@@ -9,7 +9,7 @@
9
9
  "homepage": "https://github.com/Uunan/TamgaVDesktop#readme",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/Uunan/TamgaVDesktop.git"
12
+ "url": "git+https://github.com/Uunan/TamgaVDesktop.git"
13
13
  },
14
14
  "bugs": {
15
15
  "url": "https://github.com/Uunan/TamgaVDesktop/issues"
@@ -30,8 +30,8 @@
30
30
  "node": ">=18.0.0"
31
31
  },
32
32
  "bin": {
33
- "tamga-vdesktop": "./dist/cli.js",
34
- "tamga": "./dist/cli.js"
33
+ "tamga-vdesktop": "dist/cli.js",
34
+ "tamga": "dist/cli.js"
35
35
  },
36
36
  "main": "./dist/server.js",
37
37
  "exports": {