Skip to content

Commit

Permalink
Fix SDK installation guide on Linux (#11034)
Browse files Browse the repository at this point in the history
_Description of what this PR is changing or adding, and why:_ 

Currently, the installation guide on Linux goes against the
[FHS](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard).
According to FHS (Filesystem Hierarchy Standard):
- ```/usr``` should not be modified by the administrator, except when
installing or removing vendor-supplied packages.
- ```/usr/bin``` should only be managed by the package manager.
- There must be no subdirectories in ```/usr/bin```.

## Presubmit checklist

- [ ] This PR is marked as draft with an explanation if not meant to
land until a future stable release.
- [x] This PR doesn’t contain automatically generated corrections
(Grammarly or similar).
- [x] This PR follows the [Google Developer Documentation Style
Guidelines](https://developers.google.com/style) — for example, it
doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person).
- [x] This PR uses [semantic line
breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks)
of 80 characters or fewer.

Co-authored-by: Parker Lougheed <[email protected]>
  • Loading branch information
Integral-Tech and parlough authored Aug 19, 2024
1 parent fd78580 commit e5105b0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/_data/shells.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
- name: bash
set-path: echo 'export PATH="/usr/bin/flutter/bin:$PATH"' >> ~/.bash_profile
set-path: echo 'export PATH="~/development/flutter/bin:$PATH"' >> ~/.bash_profile
- name: zsh
set-path: echo 'export PATH="/usr/bin/flutter/bin:$PATH"' >> ~/.zshenv
set-path: echo 'export PATH="~/development/flutter/bin:$PATH"' >> ~/.zshenv
- name: fish
set-path: fish_add_path -g -p /usr/bin/flutter/bin
set-path: fish_add_path -g -p ~/development/flutter/bin
- name: csh
set-path: echo 'setenv PATH "/usr/bin/flutter/bin:$PATH"' >> ~/.cshrc
set-path: echo 'setenv PATH "~/development/flutter/bin:$PATH"' >> ~/.cshrc
- name: tcsh
set-path: echo 'setenv PATH "/usr/bin/flutter/bin:$PATH"' >> ~/.tcshrc
set-path: echo 'setenv PATH "~/development/flutter/bin:$PATH"' >> ~/.tcshrc
- name: ksh
set-path: echo 'export PATH="/usr/bin/flutter/bin:$PATH"' >> ~/.profile
set-path: echo 'export PATH="~/development/flutter/bin:$PATH"' >> ~/.profile
- name: sh
set-path: echo 'export PATH="/usr/bin/flutter/bin:$PATH"' >> ~/.profile
set-path: echo 'export PATH="~/development/flutter/bin:$PATH"' >> ~/.profile
8 changes: 4 additions & 4 deletions src/_includes/docs/install/flutter/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
-d {{path}}
{%- endcapture %}
{% else -%}
{% assign diroptions='`/usr/bin/`' %}
{% assign dirinstall='`/usr/bin/`' %}
{% assign diroptions='`~/development/`' %}
{% assign dirinstall='`~/development/`' %}
{% assign unzip='tar' %}
{% assign path='/usr/bin/' %}
{% assign flutter-path='/usr/bin/flutter' %}
{% assign path='~/development/' %}
{% assign flutter-path='~/development/flutter' %}
{% assign terminal='a shell' %}
{% assign prompt='\$' %}
{% assign dirdl='~/Downloads/' %}
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/docs/install/reqs/linux/set-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ add Flutter to the `PATH` environment variable.
:::note
If the above doesn't work, you might be using a non-login shell.
In that case, add the same line to ~/.bashrc: `console $ echo
'export PATH="/usr/bin/flutter/bin:$PATH"' >> ~/.bashrc `.
'export PATH="~/development/flutter/bin:$PATH"' >> ~/.bashrc `.
To ensure consistency across all shell types, source ~/.bashrc from
~/.bash_profile by adding the following to ~/.bash_profile: ` if [ -f
~/.bashrc ]; then source ~/.bashrc fi `.
Expand Down
2 changes: 1 addition & 1 deletion src/content/get-started/test-drive/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ toc: false
{% assign prompt2='$' %}
{% assign dirdl='~/Downloads/' %}
{% else -%}
{% assign path='/usr/bin/' %}
{% assign path='~/development/' %}
{% assign terminal='a shell' %}
{% assign prompt1='$' %}
{% assign prompt2='$' %}
Expand Down

0 comments on commit e5105b0

Please sign in to comment.