Skip to content

Commit

Permalink
Merge branch 'main' into pipewire (try #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
fat-tire committed Jun 15, 2022
2 parents 58e19e5 + 8158db4 commit 3140639
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion resolve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ mkdir -p ${RESOLVE_MOUNTS_PATH}/${RESOLVE_EASYDCP}
mkdir -p ${RESOLVE_MOUNTS_PATH}/${RESOLVE_LICENSE}
mkdir -p ${RESOLVE_MOUNTS_PATH}/${RESOLVE_COMMON_DATA_DIR}
mkdir -p ${RESOLVE_MOUNTS_PATH}/${RESOLVE_MEDIA}
mkdir -p "${HOME}/.local/share/fonts"

# Check for a machine-id file. If one doesn't exist, generate one derived from
# the current host's machine-id if it exists (so it can be reproduced if needed).
Expand Down Expand Up @@ -108,6 +109,21 @@ else
export NET_DRIVER="--network=${RESOLVE_NETWORK}"
fi

# look for cursor theme in standard locations and set up mount if it exists.

if [ -f /usr/share/icons/default/index.theme ]; then
CURSOR_THEME=/usr/share/icons/default/index.theme
elif [ -f ${HOME}/.icons/default/index.theme ]; then
CURSOR_THEME=${HOME}/.icons/default/index.theme
elif [ -f /etc/alternatives/x-cursor-theme ]; then
CURSOR_THEME=/etc/alternatives/x-cursor-theme
else unset CURSOR_THEME
fi

if ! [ -z "${CURSOR_THEME}" ]; then
export MOUNT_CURSOR_THEME=( --mount type=bind,source=${CURSOR_THEME},target=/usr/share/icons/default/index.theme,readonly )
fi

echo "The network driver setting is : ${NET_DRIVER}"
echo "Bind-mounted directories of interest :"
echo " CONTAINER (CentOS 8) -> HOST (`source /etc/os-release; echo ${NAME}`)"
Expand Down Expand Up @@ -211,7 +227,6 @@ fi
--mount type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix \
--mount type=bind,source=${XDG_RUNTIME_DIR}/pulse/native,target=${XDG_RUNTIME_DIR}/pulse/native \
--mount type=bind,source=/usr/share/icons,target=/usr/share/icons,readonly \
--mount type=bind,source=/etc/alternatives/x-cursor-theme,target=/usr/share/icons/default/index.theme,readonly \
--mount type=bind,source=${HOME}/.config/pulse/cookie,target=/run/pulse/cookie \
--mount type=bind,source=${HOME}/.local/share/fonts,target=/usr/share/fonts,readonly \
--mount type=bind,source=${RESOLVE_MOUNTS_PATH}/${MOUNTS_DIRNAME}/container-machine-id,target=/etc/machine-id \
Expand All @@ -223,6 +238,7 @@ fi
--mount type=bind,source=${RESOLVE_MOUNTS_PATH}/${RESOLVE_COMMON_DATA_DIR},target=/var/BlackmagicDesign \
--mount type=bind,source=${RESOLVE_MOUNTS_PATH}/${RESOLVE_DATABASE},target=/opt/resolve/Resolve\ Disk\ Database \
--mount type=bind,source=${RESOLVE_MOUNTS_PATH}/${RESOLVE_MEDIA},target=/opt/resolve/Media \
"${MOUNT_CURSOR_THEME[@]}" \
"${CGROUP_RULE[@]}" \
"${MOUNT_SYSTEM_FONTS[@]}" \
"${MOUNTS_HIDRAW[@]}" \
Expand Down

0 comments on commit 3140639

Please sign in to comment.