emuell / restic-browser

A GUI to browse and restore restic backup repositories.
MIT License
722 stars 22 forks source link

rclone path on macos #88

Closed chrisb86 closed 10 months ago

chrisb86 commented 11 months ago

I installed restic and rclone with homebrew and try to connect to a repository in onedrive.

restic-browser complains that rclone binary wasn't found in $PATH.

echo $PATH
/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/TeX/texbin:/Users/chris/.local/bin:/Users/chris/bin:/opt/homebrew/sbin:/opt/homebrew/bin

which rclone
/opt/homebrew/bin/rclone
emuell commented 11 months ago

The latest version of Restic Browser will try to manually locate the restic binary, but it won't do so for rclone, which is launched by restic internally.

Applications launched from the finder won't inherit your shell's PATH settings. Configuring the PATH globally on macOS is quite a pain. See this old thread for more info and possible workarounds: See https://github.com/emuell/restic-browser/issues/35#issuecomment-1304856700

The easiest workaround is launching the Restic browser from your shell instead of launching it from Finder.

emuell commented 10 months ago

See https://github.com/emuell/restic-browser/pull/92

On macOS, rclone will now also be manually looked up at "/usr/local/bin:/opt/local/bin:/opt/homebrew/bin:~/bin", just like the restic executable.