fat-tire / resolve

Container scripts to build and run DaVinci Resolve [Studio] for Linux using Docker or Podman
MIT License
192 stars 23 forks source link

Manjaro: Check for missing paths before mounting in resolve.sh #17

Closed fat-tire closed 2 years ago

fat-tire commented 2 years ago

For compatibility with Arch/Majaro, make the following two mounts conditional on the source actually existing.

    --mount type=bind,source=${HOME}/.local/share/fonts,target=/usr/share/fonts,readonly (no such directory on my Manjaro machines: ~/.local/share/fonts - possibly because I installed all fonts globally?)
    --mount type=bind,source=/etc/alternatives/x-cursor-theme,target=/usr/share/icons/default/index.theme,readonly (again, the folder /etc/alternatives/x-cursor-theme does not exist)

(See here for more on cursor theme locations in Arch. The ideal situation is to inherit the same mouse theme from the host, which works currently in Ubuntu, but a more universal solution may exist (?) Perhaps a fallback value might be ~/.icons/default/index.theme with a further fallback to /usr/share/icons/default/index.theme )

Thanks @hanziness for IDing this as an issue.

fat-tire commented 2 years ago

Update: ${HOME}/.local/share/fonts is, like debian-derived distributions, the recommended location for local fonts on Arch. So probably best to keep this and to create that directory if it doesn't exist.