Skip to content

docs: the desktop env eval recipe runs the next command after a failure #379

Open

Description

@ElbertePlinio

README.md (line 154) and INSTALL.md (line 213) load a session's environment with:

eval "$(pickforge-lab desktop env --session <id>)"

If desktop env fails, for example because the session is gone, the command substitution is empty and eval "" exits 0, even under set -e. The next command then runs with the host DISPLAY, WAYLAND_DISPLAY and other inherited variables, outside the session. An app started this way can open on the user's real desktop.

The Flutter skill recipe was changed in the #360 PR to start the app only after the recipe loads:

recipe="$(pickforge-lab desktop env --session <id>)" && eval "$recipe" && <command>

Found in a review of the #360 PR. The README and INSTALL copies predate it and were left alone there.

Checklist

  • Use a recipe in README.md and INSTALL.md that stops when desktop env fails
  • Check other docs and skills for the same pattern

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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