fix: Sandbox error with Linux
This commit is contained in:
@@ -11,12 +11,11 @@ const fs = require("fs");
|
|||||||
const os = require("os");
|
const os = require("os");
|
||||||
|
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
app.commandLine.appendSwitch("--disable-dev-shm-usage");
|
// Enable Ozone platform auto-detection for Wayland/X11 support
|
||||||
|
app.commandLine.appendSwitch("--ozone-platform-hint=auto");
|
||||||
|
|
||||||
app.commandLine.appendSwitch("--use-gl=angle");
|
// Enable hardware video decoding if available
|
||||||
app.commandLine.appendSwitch("--use-angle=swiftshader");
|
app.commandLine.appendSwitch("--enable-features=VaapiVideoDecoder");
|
||||||
|
|
||||||
app.commandLine.appendSwitch("--in-process-gpu");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
app.commandLine.appendSwitch("--ignore-certificate-errors");
|
app.commandLine.appendSwitch("--ignore-certificate-errors");
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Termix
|
Name=Termix
|
||||||
Comment=Web-based server management platform with SSH terminal, tunneling, and file editing
|
Comment=Web-based server management platform with SSH terminal, tunneling, and file editing
|
||||||
Exec=termix %U
|
Exec=run.sh %U
|
||||||
Icon=com.karmaa.termix
|
Icon=com.karmaa.termix
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ runtime-version: "24.08"
|
|||||||
sdk: org.freedesktop.Sdk
|
sdk: org.freedesktop.Sdk
|
||||||
base: org.electronjs.Electron2.BaseApp
|
base: org.electronjs.Electron2.BaseApp
|
||||||
base-version: "24.08"
|
base-version: "24.08"
|
||||||
command: termix
|
command: run.sh
|
||||||
separate-locales: false
|
separate-locales: false
|
||||||
|
|
||||||
finish-args:
|
finish-args:
|
||||||
@@ -16,8 +16,11 @@ finish-args:
|
|||||||
- --device=dri
|
- --device=dri
|
||||||
- --filesystem=home
|
- --filesystem=home
|
||||||
- --socket=ssh-auth
|
- --socket=ssh-auth
|
||||||
- --talk-name=org.freedesktop.Notifications
|
- --socket=session-bus
|
||||||
- --talk-name=org.freedesktop.secrets
|
- --talk-name=org.freedesktop.secrets
|
||||||
|
- --env=ELECTRON_TRASH=gio
|
||||||
|
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
|
||||||
|
- --env=ELECTRON_OZONE_PLATFORM_HINT=auto
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
- name: termix
|
- name: termix
|
||||||
@@ -36,6 +39,15 @@ modules:
|
|||||||
- cp squashfs-root/*.dat /app/bin/ || true
|
- cp squashfs-root/*.dat /app/bin/ || true
|
||||||
- cp squashfs-root/*.json /app/bin/ || true
|
- cp squashfs-root/*.json /app/bin/ || true
|
||||||
|
|
||||||
|
- |
|
||||||
|
cat > run.sh << 'EOF'
|
||||||
|
#!/bin/bash
|
||||||
|
export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
|
||||||
|
exec zypak-wrapper /app/bin/termix "$@"
|
||||||
|
EOF
|
||||||
|
- chmod +x run.sh
|
||||||
|
- install -Dm755 run.sh /app/bin/run.sh
|
||||||
|
|
||||||
- install -Dm644 com.karmaa.termix.desktop /app/share/applications/com.karmaa.termix.desktop
|
- install -Dm644 com.karmaa.termix.desktop /app/share/applications/com.karmaa.termix.desktop
|
||||||
|
|
||||||
- install -Dm644 com.karmaa.termix.metainfo.xml /app/share/metainfo/com.karmaa.termix.metainfo.xml
|
- install -Dm644 com.karmaa.termix.metainfo.xml /app/share/metainfo/com.karmaa.termix.metainfo.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user