diff --git a/README.md b/README.md index c48d99a..004f22c 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ curl -fsSL -H "Authorization: token $GITEA_TOKEN" \ | `DOTFILES_SKIP_SYSTEM=1` | Never call sudo. Everything in `$HOME` still works. | | `DOTFILES_DIR` | Checkout location (default `~/.dotfiles`). | +On the personal desktop, `dot apps` gives the Chrome Flatpak user-scoped +write access to the two host directories used for web app launchers and +icons. Re-run `dot apps` to apply it to an existing installation, then quit +and reopen Chrome. + On SteamOS, the one sudo prompt makes `/nix` owned by `deck`. Nix then runs in single-user mode, with no daemon and no units in `/etc`. ### Set up the Bitwarden CLI diff --git a/bin/dot b/bin/dot index 4ea55cd..765bd56 100755 --- a/bin/dot +++ b/bin/dot @@ -324,6 +324,11 @@ cmd_apps() { done [ ${#failed[@]} -eq 0 ] || warn "Flatpaks failed: ${failed[*]}" ok "Flatpaks: $(( ${#missing[@]} - ${#failed[@]} )) installed, rest already present" + if [ "$(profile)" = full ] && flatpak_has com.google.Chrome; then + flatpak override --user '--filesystem=~/.local/share/applications:create' \ + '--filesystem=~/.local/share/icons:create' com.google.Chrome || + warn "Could not configure Chrome web app permissions" + fi seed_xpipe fi