Skip to content

Update flatpak-run.sh #208

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions demos/flatpak-run.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/bash
# For this to work you first have to run these commands:
# curl -O http://sdk.gnome.org/nightly/keys/nightly.gpg
# flatpak --user remote-add --gpg-key=nightly.gpg gnome-nightly http://sdk.gnome.org/nightly/repo/
# flatpak --user install gnome-nightly org.gnome.Platform
# flatpak --user install gnome-nightly org.gnome.Weather
# flatpak --user remote-add --from gnome-apps https://sdk.gnome.org/gnome-apps.flatpakrepo
# flatpak --user install gnome-apps org.gnome.Weather
# flatpak --user remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
# flatpak --user install gnome org.gnome.Platform//3.24

mkdir -p ~/.var/app/org.gnome.Weather/cache ~/.var/app/org.gnome.Weather/config ~/.var/app/org.gnome.Weather/data

(
exec bwrap \
--ro-bind ~/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/master/active/files /usr \
--ro-bind ~/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.24/active/files /usr \
--lock-file /usr/.ref \
--ro-bind ~/.local/share/flatpak/app/org.gnome.Weather/x86_64/master/active/files/ /app \
--ro-bind ~/.local/share/flatpak/app/org.gnome.Weather/x86_64/stable/active/files/ /app \
--lock-file /app/.ref \
--dev /dev \
--proc /proc \
Expand Down Expand Up @@ -61,5 +61,5 @@ mkdir -p ~/.var/app/org.gnome.Weather/cache ~/.var/app/org.gnome.Weather/config
10<<EOF
[Application]
name=org.gnome.Weather
runtime=runtime/org.gnome.Platform/x86_64/master
runtime=org.gnome.Platform/x86_64/3.24
EOF