Skip to content

Install script should use XDG_DATA_HOME for binary location #5176

Closed

Description

@thedaneeffect

Summary

Install script uses ~/.opencode/bin but runtime uses XDG-compliant paths (~/.local/share/opencode/). Should align both to use $XDG_DATA_HOME/opencode/bin.

Changes

  • Update install script to use XDG_DATA_HOME (fallback: ~/.local/share)
  • Migrate existing installations from ~/.opencode/bin
  • Already compatible with upgrade detection (installation/index.ts:60-61)

Activity

  1. github-actions commented on Dec 6, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. added a commit that references this issue on Dec 6, 2025
    7f7d4a2
  3. github-actions commented on Dec 6, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  4. self-assigned this
    on Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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