patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 7cb182f5f4bc98594a9e486c65c66650f2e8c806 584 bytes (raw)
name: host/rootfs/image/etc/s6-rc/weston/run 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
#!/bin/execlineb -P
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2021, 2025 Alyssa Ross <hi@alyssa.is>

importas -Siu WAYLAND_DISPLAY

# Workaround for
# https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1911
if { mkdir -p -m 0700 /run/user/0 }

backtick USER { id -un }
backtick HOME {
  importas -i user USER
  homeof $user
}

redirfd -r 0 /dev/tty1

importas -i home HOME
cd $home
if { udevadm wait /dev/dri/card0 }
unshare --cgroup --ipc --net --uts

s6-envuidgid root
s6-envuidgid -g wayland
s6-applyuidgid -Uz
umask 002
weston -S $WAYLAND_DISPLAY

debug log:

solving 7cb182f ...
found 7cb182f in https://inbox.spectrum-os.org/spectrum-devel/20251209085628.603316-5-hi@alyssa.is/
found aa1e7b6 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100644 aa1e7b617d74028cf35839077753ade650cca14c	host/rootfs/image/etc/s6-rc/weston/run

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251209085628.603316-5-hi@alyssa.is/
diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image/etc/s6-rc/weston/run
index aa1e7b6..7cb182f 100644

Checking patch host/rootfs/image/etc/s6-rc/weston/run...
Applied patch host/rootfs/image/etc/s6-rc/weston/run cleanly.

index at:
100644 7cb182f5f4bc98594a9e486c65c66650f2e8c806	host/rootfs/image/etc/s6-rc/weston/run

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).