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

Update local-install to create $HOME/.foxglove-studio folder if snap is not present #99

Merged

Conversation

defunctzombie
Copy link
Contributor

@defunctzombie defunctzombie commented Mar 31, 2023

In #91 we updated the install logic to install correctly for snap users. In that logic we check for the presence of specific directories before installing (whereas before we would always make the directory). Since then we've learned that debian package users don't actually have a $HOME/.foxglove-studio/extensions directory prior to actually installing an extension. This meant that the local-install script would fail to install a developer's extension locally unless they had installed one via the marketplace or made the extensions dir manually.

This change updates the install command to pro-actively create the $HOME/.foxglove-studio/extensions directory if it does not exist. To avoid creating this directory for snap users, we first check for the presence of the snap/foxglove-studio/current directory which tells us if a snap is installed for foxglove-studio. If the snap is used then we only install in the snap directory.

We'll see how this holds up to other create ways folks expected the local install command to work.

Fixes: #98

@defunctzombie defunctzombie merged commit 97586d5 into main Mar 31, 2023
@defunctzombie defunctzombie deleted the roman/fg-2453-extensions-dont-install-unless-foxglove branch March 31, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Extensions don't install unless ~/.foxglove-studio/extensions already exists
2 participants