-
Notifications
You must be signed in to change notification settings - Fork 875
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
feat: ipfs on PATH on runtime #906
Conversation
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
Just noticed that if the user says 'No', every time they start IPFS Desktop, they'll be prompted. What do you think? If we add an option 'No, and don't ask' we should provide a way to undo it if the user happens to change its mind. Also, keep in mind this only affects macOS users. |
Being nagged every time a user starts Desktop is no good. I'd say we should just ask once, but have an option (a button for example) in the desktop specific settings to trigger the replacement. |
This sounds like a good candidate for some kind of status block (and/or switch) in the sidebar, indicating which IPFS binary you are using system wide. |
Hmm... I'm not sure if the status block would be a good way because this only affects macOS and it could require more work than what it's worth. What if we show once and, if the user says no (or if /usr/local/bin/ipfs gets manually changed), we add an option (perhaps under Advanced or even in the main menu) to add it to PATH. What do you think? |
That sounds like a good compromise to get this implemented and we can always revisit later. If you install IPFS Desktop and IPFS isn't in the users path does we automatically set it up? I ask because presenting people with decisions on initial load can be hostile, especially if it feels permanent and the user doesn't yet understand the benefits. My suggestion would be:
There may be other opportunities on the UI where we can present the option to enable this before an action is performed, such as first starting your node. |
@cwaring I get you, but let me give you a little more context:
I just wanted to get feedback from more people too. /cc @olizilla @fsdiogo |
@hacdias my opinion hasn't changed => #906 (comment). |
So, just made some update: initially asks the user. If no, there will be an option under 'Advanced' to add to the PATH. It won't ask the user more times. |
As an update: I'll use this PR and do what's described here (#727 (comment)) on this PR. So'll change the status to WIP |
The current install prompts you with this As we only prompt the user about installing the Allow IPFS Desktop to update the IPFS CLIIPFS desktop can keep the IPFS command-line interface (CLI) up to date. It will replace the existing [ Update CLI ] [ Keep existing ] |
@@ -14,13 +14,9 @@ | |||
"clean:webui": "shx rm -rf assets/webui/", | |||
"build": "run-s build:*", | |||
"build:webui": "run-s build:webui:*", | |||
"build:webui:download": "npx ipfs-or-gateway -c QmfQkD8pBSBCBxWEwFSu4XaDVSWK6bjnNuaWZjMyQbyDub -p assets/webui/", | |||
"build:webui:download": "npx ipfs-or-gateway -c QmQz6PVJPqRZZtShVZbc8J3VdZE8pEd7p5RGujvGGUmSyx -p assets/webui/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This CID should always be the latest release of ipfs-webui unless it depends on a pre-release version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@olizilla it's from the linked PR (ipfs/ipfs-webui#1016) and needed, yes.
Co-Authored-By: hacdias <hacdias@gmail.com>
Co-Authored-By: hacdias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
…ipyard/ipfs-desktop into feat/ask-to-replace-ipfs
@olizilla updated the messages, depending on whether or using Windows, or you already have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some QA for Linux: exec-root
works only with polkit agent running
That is not a big problem, most of user-friendly distributions will have polkit agent running, but we should improve error handling, especially for advanced users without it (see below)
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
Provides less ambiguity for us. License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
I'm merging this and adding the missing Web UI PR to the list of the next release #880. |
Closes #727.
See #906 (comment)