chore: move 10-looking-glass.conf into just (#622)

* chore: move 10-looking-glass.conf into just

* chore: use sudo tee instead of cat and mv
This commit is contained in:
HikariKnight 2023-12-19 00:59:15 +01:00 committed by GitHub
parent f0c2abf0fd
commit 6a88f0f499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,2 +0,0 @@
# Type Path Mode UID GID Age Argument
f /dev/shm/looking-glass 0660 1000 qemu -

View File

@ -329,6 +329,10 @@ install-opentabletdriver:
# Add SELinux file context for default looking-glass shm file so that libvirt can create it when needed
selinux-looking-glass:
sudo tee << 'LOOKING_GLASS_TMP' > /etc/tmpfiles.d/10-looking-glass.conf
# Type Path Mode UID GID Age Argument
f /dev/shm/looking-glass 0660 1000 qemu -
LOOKING_GLASS_TMP
sudo semanage fcontext -a -t svirt_tmpfs_t /dev/shm/looking-glass
# Add virtual audio channels/sinks named Game, Voice, Browser and Music which you can split audio to using qpwgraph, helvum, carla or other pipewire patchbays for use in OBS and other use cases