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

Set root path to $HOME #887

Merged
merged 3 commits into from
Jan 19, 2022
Merged

Set root path to $HOME #887

merged 3 commits into from
Jan 19, 2022

Conversation

moogle19
Copy link
Contributor

The default root path when starting the livebook macOS app was /.
I think it would be better, if it is started with $HOME as root path.

The best solution would probably be a configurable root path from within the app.
@wojtekmach Is something like that possible with wxWidgets?

@@ -142,7 +142,7 @@ defmodule AppBuilder.MacOS do
#!/bin/sh
set -e
root=$(dirname $(dirname "$0"))
$root/Resources/rel/bin/#{release_name} start \
LIVEBOOK_ROOT_PATH=$HOME $root/Resources/rel/bin/#{release_name} start \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't put Livebook specific stuff into app_builder/.

Instead, let's set this env var in rel/app/env.* and we should be good to go!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wojtekmach Yes, that makes sense.
I just updated the PR.

rel/app/env.sh.bat Outdated Show resolved Hide resolved
Co-authored-by: José Valim <[email protected]>
@wojtekmach wojtekmach merged commit 8fb9373 into livebook-dev:main Jan 19, 2022
@wojtekmach
Copy link
Contributor

Thank you!

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.

3 participants