super-productivity/build
Johannes Millan 297aeb30ab fix(electron): harden Snap+Wayland argv wrapper after multi-review
Address findings from code-reviewer + debugger-assistant +
refactor-specialist multi-review on 8e1c47ebc2:

- afterPack: read wrapper source before rename; on writeFile failure,
  roll the rename back so a broken intermediate state can't ship a
  package with no launcher. Strengthen idempotency check to require a
  shebang at binPath (both files alone no longer counts as "installed").
- wrapper: gate the X11 injection on \$SNAP_NAME = "superproductivity",
  not just \$SNAP set. An xdg-open from a sibling snap (e.g. Firefox)
  leaks \$SNAP into the child env, which previously would have silently
  forced XWayland on .deb/.rpm users. Derive BIN_DIR from \$SNAP
  directly when we are our snap, avoiding fragile \$0 resolution
  through snapd's wrapper chain. Stop argv scanning at -- so positional
  args that resemble --ozone-platform aren't misread as a user override.
- app-control: point app.relaunch() execPath at the sibling shell
  wrapper instead of the default process.execPath (which is the renamed
  ELF and would bypass the flag injection on a relaunched Snap+Wayland
  instance).
- Move build/snap-wrapper.sh -> build/linux/snap-wrapper.sh to match
  the existing build/linux/ layout convention.
- Update research doc §18 to reflect the tightened predicate and the
  relaunch fix.
2026-04-21 15:03:42 +02:00
..
appx feat: improve windows store icon #2549 2024-02-26 13:55:34 +01:00
icons Size optimize all images 2021-05-13 22:28:53 +02:00
linux fix(electron): harden Snap+Wayland argv wrapper after multi-review 2026-04-21 15:03:42 +02:00
512x512.png Size optimize all images 2021-05-13 22:28:53 +02:00
electron-builder.mas-dev.yaml fix: mac os icon 2026-01-29 19:48:44 +01:00
electron-builder.mas.yaml fix: mac os icon 2026-01-29 19:48:44 +01:00
electronMac{.original}.js chore: prepare mac os build 2019-10-05 18:49:56 +02:00
entitlements.mac.plist fix: arm64 mac build not working #2503 2023-12-04 14:02:53 +01:00
entitlements.mas.inherit.plist build: fix mas build 2 remove entitlements not needed anymore 2025-11-15 10:29:57 +01:00
entitlements.mas.plist build: fix mas build 2 remove entitlements not needed anymore 2025-11-15 10:29:57 +01:00
hub.enc feat: add icons 2019-01-11 17:55:49 +01:00
icon.icns fix: remove white borders from macOS icon (#6323) 2026-02-10 14:41:16 +01:00
icon.png Size optimize all images 2021-05-13 22:28:53 +02:00
info.plist chore: mac local dmg build work 2019-10-07 14:34:33 +02:00
release-notes.md docs/wiki content v0.8 (#7068) 2026-04-01 12:40:28 +02:00