Install script should use XDG_DATA_HOME for binary location #3362

Open
opened 2026-02-16 17:39:46 -05:00 by yindo · 2 comments
Owner

Originally created by @thedaneeffect on GitHub (Dec 6, 2025).

Originally assigned to: @rekram1-node on GitHub.

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)
Originally created by @thedaneeffect on GitHub (Dec 6, 2025). Originally assigned to: @rekram1-node on GitHub. ## 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](https://github.com/sst/opencode/blob/dev/packages/opencode/src/installation/index.ts#L60-L61))
Author
Owner

@github-actions[bot] commented on GitHub (Dec 6, 2025):

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

  • #5175: can not start opencode on ubuntu /tmp does not allow execution of .so

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

@github-actions[bot] commented on GitHub (Dec 6, 2025): This issue might be a duplicate of existing issues. Please check: - #5175: can not start opencode on ubuntu /tmp does not allow execution of .so Feel free to ignore if none of these address your specific case.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 6, 2025):

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

  • #5055: Install doesn't downloads $filename on linux
  • #3097: Wrong installation path
  • #4170: Reorganize and document dirs for config, agents, auth credentials, sessions

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

@github-actions[bot] commented on GitHub (Dec 6, 2025): This issue might be a duplicate of existing issues. Please check: - #5055: Install doesn't downloads $filename on linux - #3097: Wrong installation path - #4170: Reorganize and document dirs for config, agents, auth credentials, sessions Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3362