Fix PATH issue on Steam Deck by using adaptive symlink locations

- Detect Steam Deck via /etc/os-release and use ~/.local/bin for symlinks
- Fall back to /usr/local/bin on other systems to avoid read-only filesystem
- Ensure target directories exist with mkdir -p before creating symlinks
- Keep profile.d approach as fallback and source for immediate availability
- Update uninstall script to clean up symlinks from both possible locations
- Use rm -rf for systemd override directory and specific file removal

Fixes #38
This commit is contained in:
Alex Kretzschmar
2025-06-23 16:45:33 -04:00
parent 76ced54ce8
commit d79c4acec2
2 changed files with 18 additions and 9 deletions

View File

@@ -4,8 +4,9 @@ rm -f /etc/systemd/system/tailscaled.service
rm -rf /etc/systemd/system/tailscaled.service.d
rm -f /etc/default/tailscaled
rm -f /etc/profile.d/tailscale.sh
rm -f /usr/local/bin/tailscale
rm -f /usr/local/bin/tailscaled
# Remove symlinks from both possible locations (Steam Deck and other systems)
rm -f /usr/local/bin/tailscale /usr/local/bin/tailscaled
rm -f /home/deck/.local/bin/tailscale /home/deck/.local/bin/tailscaled
# Remove specific Tailscale binaries
rm -f /opt/tailscale/tailscale
rm -f /opt/tailscale/tailscaled