Skip to content

[bug] ~/.superset/bin/superset shim execs into a per-launch AppImage mount, so scripted callers break with exit 127 after every app restart #6813

Description

@maxence-lefebvre

Summary

On Linux (AppImage), ~/.superset/bin/superset is a generated shim:

#!/bin/sh
# Superset bundled CLI shim v1
exec '/tmp/.mount_Superss<random>/resources/resources/bin/superset' "$@"

The mount point is per-launch: it changes every time the app starts and disappears
when the app exits, but the shim is only rewritten on the next app start. Any
non-interactive caller that runs between boot and the app's own startup (cron, a
systemd --user unit, a login script) dies with exit 127 (exec: ... not found)
rather than a diagnosable error.

Concretely: a systemd --user timer with Persistent=true replays a missed 07:00
automation about 40s after the user manager starts at boot. At that moment the shim
still points at the previous boot's mount, so the unit fails instantly with 127,
before it can reach any retry logic. And because systemd writes the persistence stamp
on the fire, the run is never replayed: the automation silently loses the day.

Repro

  1. Linux, Superset desktop AppImage, CLI 1.24.2.
  2. cat ~/.superset/bin/superset and note the /tmp/.mount_Superss<random> path.
  3. Quit the app (or reboot) so that mount goes away; do not relaunch.
  4. ~/.superset/bin/superset --version fails with exec: /tmp/.mount_.../superset: not found, exit 127.

Expected

Resolve the real binary at call time instead of baking in a launch-scoped path.
For example, exec a stable copy kept under ~/.superset/, or discover the mount from
the running host service. If it genuinely can't find a binary, exit with a distinct
code and a clear "Superset app is not running" message so wrappers can tell "app not
up yet" apart from "command is broken".

Environment

  • CLI 1.24.2, Linux x86_64, AppImage (~/Desktop/Superset-x86_64.AppImage)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions