tamga-vdesktop 1.1.4 → 1.1.5
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 +25 -13
- package/dist/helpers/x11_bridge.py +1 -1
- package/dist/helpers/x11_streamer.py +3 -3
- package/dist/server.js +25 -13
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -381,17 +381,25 @@ var LinuxAppManager = class {
|
|
|
381
381
|
if (path2.isAbsolute(iconName) && fs2.existsSync(iconName)) return iconName;
|
|
382
382
|
const safe = path2.basename(iconName).replace(/[^a-z0-9._-]/gi, "");
|
|
383
383
|
if (!safe) return null;
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
384
|
+
const aliasMap = {
|
|
385
|
+
chrome: ["google-chrome", "chromium", "chromium-browser"],
|
|
386
|
+
mousepad: ["org.xfce.mousepad", "mousepad"],
|
|
387
|
+
vscode: ["com.visualstudio.code", "vscode", "visual-studio-code"]
|
|
388
|
+
};
|
|
389
|
+
const candidates = Array.from(/* @__PURE__ */ new Set([safe, ...aliasMap[safe] || []]));
|
|
390
|
+
for (const name of candidates) {
|
|
391
|
+
const searchPaths = [
|
|
392
|
+
`/usr/share/icons/hicolor/128x128/apps/${name}.png`,
|
|
393
|
+
`/usr/share/icons/hicolor/64x64/apps/${name}.png`,
|
|
394
|
+
`/usr/share/icons/hicolor/48x48/apps/${name}.png`,
|
|
395
|
+
`/usr/share/icons/hicolor/scalable/apps/${name}.svg`,
|
|
396
|
+
`/usr/share/pixmaps/${name}.png`,
|
|
397
|
+
`/usr/share/pixmaps/${name}.svg`,
|
|
398
|
+
`/usr/share/pixmaps/${name}.xpm`
|
|
399
|
+
];
|
|
400
|
+
for (const p of searchPaths) {
|
|
401
|
+
if (fs2.existsSync(p)) return p;
|
|
402
|
+
}
|
|
395
403
|
}
|
|
396
404
|
return null;
|
|
397
405
|
}
|
|
@@ -2789,10 +2797,14 @@ var LinuxAppSession = class {
|
|
|
2789
2797
|
],
|
|
2790
2798
|
{
|
|
2791
2799
|
env: this.baseEnv,
|
|
2792
|
-
stdio: ["pipe", "pipe", "
|
|
2800
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
2793
2801
|
}
|
|
2794
2802
|
);
|
|
2795
2803
|
view.streamerProc = proc;
|
|
2804
|
+
proc.stderr?.on("data", (err) => {
|
|
2805
|
+
const msg = err.toString("utf-8").trim();
|
|
2806
|
+
if (msg) console.error(`[x11_streamer ${this.displayStr}/${view.viewId}]`, msg);
|
|
2807
|
+
});
|
|
2796
2808
|
let acc = Buffer.alloc(0);
|
|
2797
2809
|
proc.stdout?.on("data", (chunk) => {
|
|
2798
2810
|
if (this.closed || !this.views.has(view.viewId)) return;
|
|
@@ -3389,7 +3401,7 @@ var VSCodeServerManager = class {
|
|
|
3389
3401
|
};
|
|
3390
3402
|
|
|
3391
3403
|
// server/index.ts
|
|
3392
|
-
var TAMGA_VERSION = "1.1.
|
|
3404
|
+
var TAMGA_VERSION = "1.1.5";
|
|
3393
3405
|
var MIME_MAP = {
|
|
3394
3406
|
html: "text/html; charset=utf-8",
|
|
3395
3407
|
htm: "text/html; charset=utf-8",
|
|
@@ -149,7 +149,7 @@ def main() -> None:
|
|
|
149
149
|
off_y = max(0, int(sys.argv[7]) if len(sys.argv) > 7 else 0)
|
|
150
150
|
|
|
151
151
|
dpy = None
|
|
152
|
-
for _ in range(
|
|
152
|
+
for _ in range(80):
|
|
153
153
|
dpy = libX11.XOpenDisplay(display_str.encode("utf-8"))
|
|
154
154
|
if dpy:
|
|
155
155
|
break
|
|
@@ -258,8 +258,8 @@ def main() -> None:
|
|
|
258
258
|
try:
|
|
259
259
|
cmd = json.loads(s.decode("utf-8"))
|
|
260
260
|
if cmd.get("type") == "resize":
|
|
261
|
-
width = max(
|
|
262
|
-
height = max(
|
|
261
|
+
width = max(240, min(1920, int(cmd.get("width", width))))
|
|
262
|
+
height = max(180, min(1080, int(cmd.get("height", height))))
|
|
263
263
|
dirty = True
|
|
264
264
|
elif cmd.get("type") == "refresh":
|
|
265
265
|
dirty = True
|
package/dist/server.js
CHANGED
|
@@ -2175,17 +2175,25 @@ var LinuxAppManager = class {
|
|
|
2175
2175
|
if (path5.isAbsolute(iconName) && fs5.existsSync(iconName)) return iconName;
|
|
2176
2176
|
const safe = path5.basename(iconName).replace(/[^a-z0-9._-]/gi, "");
|
|
2177
2177
|
if (!safe) return null;
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2178
|
+
const aliasMap = {
|
|
2179
|
+
chrome: ["google-chrome", "chromium", "chromium-browser"],
|
|
2180
|
+
mousepad: ["org.xfce.mousepad", "mousepad"],
|
|
2181
|
+
vscode: ["com.visualstudio.code", "vscode", "visual-studio-code"]
|
|
2182
|
+
};
|
|
2183
|
+
const candidates = Array.from(/* @__PURE__ */ new Set([safe, ...aliasMap[safe] || []]));
|
|
2184
|
+
for (const name of candidates) {
|
|
2185
|
+
const searchPaths = [
|
|
2186
|
+
`/usr/share/icons/hicolor/128x128/apps/${name}.png`,
|
|
2187
|
+
`/usr/share/icons/hicolor/64x64/apps/${name}.png`,
|
|
2188
|
+
`/usr/share/icons/hicolor/48x48/apps/${name}.png`,
|
|
2189
|
+
`/usr/share/icons/hicolor/scalable/apps/${name}.svg`,
|
|
2190
|
+
`/usr/share/pixmaps/${name}.png`,
|
|
2191
|
+
`/usr/share/pixmaps/${name}.svg`,
|
|
2192
|
+
`/usr/share/pixmaps/${name}.xpm`
|
|
2193
|
+
];
|
|
2194
|
+
for (const p of searchPaths) {
|
|
2195
|
+
if (fs5.existsSync(p)) return p;
|
|
2196
|
+
}
|
|
2189
2197
|
}
|
|
2190
2198
|
return null;
|
|
2191
2199
|
}
|
|
@@ -2780,10 +2788,14 @@ var LinuxAppSession = class {
|
|
|
2780
2788
|
],
|
|
2781
2789
|
{
|
|
2782
2790
|
env: this.baseEnv,
|
|
2783
|
-
stdio: ["pipe", "pipe", "
|
|
2791
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
2784
2792
|
}
|
|
2785
2793
|
);
|
|
2786
2794
|
view.streamerProc = proc;
|
|
2795
|
+
proc.stderr?.on("data", (err) => {
|
|
2796
|
+
const msg = err.toString("utf-8").trim();
|
|
2797
|
+
if (msg) console.error(`[x11_streamer ${this.displayStr}/${view.viewId}]`, msg);
|
|
2798
|
+
});
|
|
2787
2799
|
let acc = Buffer.alloc(0);
|
|
2788
2800
|
proc.stdout?.on("data", (chunk) => {
|
|
2789
2801
|
if (this.closed || !this.views.has(view.viewId)) return;
|
|
@@ -3380,7 +3392,7 @@ var VSCodeServerManager = class {
|
|
|
3380
3392
|
};
|
|
3381
3393
|
|
|
3382
3394
|
// server/index.ts
|
|
3383
|
-
var TAMGA_VERSION = "1.1.
|
|
3395
|
+
var TAMGA_VERSION = "1.1.5";
|
|
3384
3396
|
var MIME_MAP = {
|
|
3385
3397
|
html: "text/html; charset=utf-8",
|
|
3386
3398
|
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.
|
|
3
|
+
"version": "1.1.5",
|
|
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).",
|