xiwrap

slightly higher-level container setup utility
git clone https://git.ce9e.org/xiwrap.git

commit
f4793cbb16842ba61da484cf17752a0aaeaeb962
parent
b8dc05ba50ee716fd74850bfec1e4c58966c70b8
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-06-15 17:31
update rules

Diffstat

M rules/graphics 1 +
D rules/gtk 4 ----
A rules/gui 12 ++++++++++++
R rules/bin -> rules/host-os 6 +++++-
M rules/network 3 ++-
M xiwrap.py 2 +-

6 files changed, 21 insertions, 7 deletions


diff --git a/rules/graphics b/rules/graphics

@@ -1,3 +1,4 @@
    1     1 env WAYLAND_DISPLAY
    2     2 env XDG_RUNTIME_DIR
   -1     3 env XDG_CURRENT_DESKTOP
    3     4 ro-bind $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY

diff --git a/rules/gtk b/rules/gtk

@@ -1,4 +0,0 @@
    1    -1 import graphics
    2    -1 env HOME
    3    -1 ro-bind $HOME/.themes
    4    -1 ro-bind $HOME/.config/dconf

diff --git a/rules/gui b/rules/gui

@@ -0,0 +1,12 @@
   -1     1 import graphics
   -1     2 env HOME
   -1     3 ro-bind /etc/fonts
   -1     4 ro-bind /usr/share/fonts
   -1     5 ro-bind /usr/share/icons
   -1     6 ro-bind /usr/share/themes/
   -1     7 ro-bind $HOME/.local/share/fonts
   -1     8 ro-bind $HOME/.local/share/icons
   -1     9 ro-bind $HOME/.local/share/themes
   -1    10 bind $HOME/.cache/fontconfig
   -1    11 bind $HOME/.cache/thumbnails
   -1    12 ro-bind $HOME/.config/dconf/user

diff --git a/rules/bin b/rules/host-os

@@ -1,4 +1,8 @@
   -1     1 ro-bind /usr
    1     2 ro-bind /bin
   -1     3 ro-bind /sbin
    2     4 ro-bind /lib
   -1     5 ro-bind /lib32
    3     6 ro-bind /lib64
    4    -1 ro-bind /usr
   -1     7 ro-bind /etc/ld.so.cache
   -1     8 ro-bind /etc/alternatives

diff --git a/rules/network b/rules/network

@@ -1,3 +1,4 @@
    1     1 share-net
    2     2 ro-bind /etc/resolv.conf
    3    -1 ro-bind /etc/ssl/certs/ca-certificates.crt
   -1     3 ro-bind /etc/ssl
   -1     4 ro-bind /etc/ca-certificates

diff --git a/xiwrap.py b/xiwrap.py

@@ -8,7 +8,7 @@ SYSTEM_CONFIG = Path('/etc') / 'xiwrap'
    8     8 
    9     9 USAGE = """Usage: xiwrap [OPTION]... -- [BWRAP_OPTIONS]... CMD
   10    10 
   11    -1 Example: xiwrap --import bin --env TERM -- --chdir /tmp bash
   -1    11 Example: xiwrap --import host-os --env TERM -- --chdir /tmp bash
   12    12 
   13    13 The following options are available:
   14    14