Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix broken macOS paths for homebrew service #7189

Closed

Conversation

tfiala
Copy link
Contributor

@tfiala tfiala commented Sep 24, 2016

When Spacemacs is run as a macOS homebrew service, the window-system at startup time is not set as it is running essentially headless. This causes the very-early call to exec-path-from-shell, which was checking for macOS via window-system, to fail the check. This is pretty much game over for macOS and user-customized paths, as the exec paths are not updated and any extra user-path utilities (e.g. aspell, gls) won't be found.

This change switches over to using spacemacs/system-is-mac and spacemacs/system-is-linux as the primary checks, and keeps the window-system check for 'x in case other Unix variants are getting exec-path set via that check.

When Spacemacs is run as a macOS homebrew service, the window-system
at startup time is not set.  This causes the very-early
call to exec-path-from-shell, which was checking for macOS via
window-system, to fail the check.  This is pretty much game over
for macOS and user-customized paths, as the exec paths are not
updated and any extra user-path utilities (e.g. aspell, gls) won't
be found.

This change switches over to using spacemacs/system-is-mac and
spacemacs/system-is-linux as the primary check, and keeps the
window-system check for 'x in case other Unix variants
are getting exec-path set via that check.
@tfiala
Copy link
Contributor Author

tfiala commented Sep 24, 2016

I'm a bit confused on which branch to base this on. I used the 'develop' branch/tag as the initial PR request header message said to not use master and to use the 'development' branch (which isn't a named branch in the repo). However, I see a lot of activity on the master branch, and the develop seems quite stale.

Please let me know if I need to rebase this against a different one.

Thanks for all the excellent work on Spacemacs!

@nixmaniack
Copy link
Contributor

develop is the development branch of spacemacs so you have done it right. master might get hotfixes in between releases hence the activity. develop is always cutting-edge master might get stale.

@tfiala
Copy link
Contributor Author

tfiala commented Sep 25, 2016

Thanks, @nixmaniack!

@TheBB
Copy link
Collaborator

TheBB commented Oct 17, 2016

Thanks! Cherry-picked in develop. You can safely delete your branch.

@TheBB TheBB closed this Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants