❯ flatpak run --command=/bin/bash org.gnome.TextEditor
bash: starship: command not found
[📦 org.gnome.TextEditor ~]$ gsettings set org.gnome.TextEditor keybindings vim
[📦 org.gnome.TextEditor ~]$
exit
For anyone else interested, this is how you can automatically run multiple commands inside the sandbox. Once the commands are run, it automatically exits the sandbox.
This is part of a script I have to set up Gnome.
echo "(
gsettings set org.gnome.TextEditor show-line-numbers true
gsettings set org.gnome.TextEditor spellcheck false
gsettings set org.gnome.TextEditor restore-session false
)" | flatpak run --command=sh org.gnome.TextEditor