Rename binary to bwrap
This is shorter and less cutesy
This commit is contained in:
@@ -4,9 +4,9 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|||||||
AM_CPPFLAGS = -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"'
|
AM_CPPFLAGS = -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"'
|
||||||
AM_CFLAGS = $(WARN_CFLAGS)
|
AM_CFLAGS = $(WARN_CFLAGS)
|
||||||
|
|
||||||
bin_PROGRAMS = bubblewrap
|
bin_PROGRAMS = bwrap
|
||||||
|
|
||||||
bubblewrap_SOURCES = \
|
bwrap_SOURCES = \
|
||||||
bubblewrap.c \
|
bubblewrap.c \
|
||||||
bind-mount.h \
|
bind-mount.h \
|
||||||
bind-mount.c \
|
bind-mount.c \
|
||||||
@@ -16,5 +16,5 @@ bubblewrap_SOURCES = \
|
|||||||
utils.c \
|
utils.c \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
bubblewrap_CFLAGS = $(AM_CFLAGS)
|
bwrap_CFLAGS = $(AM_CFLAGS)
|
||||||
bubblewrap_LDFLAGS =
|
bwrap_LDFLAGS =
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Use bubblewrap to run /bin/sh in the host's rootfs.
|
# Use bubblewrap to run /bin/sh in the host's rootfs.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
exec bubblewrap --mount-ro-bind /usr /usr \
|
exec bwrap --mount-ro-bind /usr /usr \
|
||||||
--make-dir /tmp \
|
--make-dir /tmp \
|
||||||
--mount-proc /proc \
|
--mount-proc /proc \
|
||||||
--mount-dev /dev \
|
--mount-dev /dev \
|
||||||
|
@@ -29,7 +29,7 @@ runtime=runtime/org.gnome.Platform/x86_64/master
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
./bubblewrap \
|
exec ../bwrap \
|
||||||
--mount-ro-bind ~/.local/share/xdg-app/runtime/org.gnome.Platform/x86_64/master/active/files /usr \
|
--mount-ro-bind ~/.local/share/xdg-app/runtime/org.gnome.Platform/x86_64/master/active/files /usr \
|
||||||
--lock-file /usr/.ref \
|
--lock-file /usr/.ref \
|
||||||
--mount-ro-bind ~/.local/share/xdg-app/app/org.gnome.Weather/x86_64/master/active/files/ /app \
|
--mount-ro-bind ~/.local/share/xdg-app/app/org.gnome.Weather/x86_64/master/active/files/ /app \
|
||||||
@@ -62,7 +62,7 @@ EOF
|
|||||||
--mount-bind ~/.config/dconf ~/.config/dconf \
|
--mount-bind ~/.config/dconf ~/.config/dconf \
|
||||||
--mount-bind /run/user/`id -u`/dconf /run/user/`id -u`/dconf \
|
--mount-bind /run/user/`id -u`/dconf /run/user/`id -u`/dconf \
|
||||||
--unshare-pid \
|
--unshare-pid \
|
||||||
/bin/sh 10< ${APPINFO}
|
gnome-weather 10< ${APPINFO}
|
||||||
|
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
|
Reference in New Issue
Block a user