Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(desktop-gpui): record the reference runner's accessibility and GPU state
Richie McIlroy79b6f2c94f62
diff --git a/.github/workflows/glass-reference.yml b/.github/workflows/glass-reference.ymlindex 9ccec38e4..aff28f02c 100644--- a/.github/workflows/glass-reference.yml+++ b/.github/workflows/glass-reference.yml@@ -41,6 +41,12 @@ jobs:sudo sqlite3 "$db" "INSERT OR REPLACE INTO access (service,client,client_type,auth_value,auth_reason,auth_version,indirect_object_identifier,flags,last_modified) VALUES ('kTCCServiceScreenCapture','$client',1,2,4,1,'UNUSED',0,$now);" || truedonesudo killall tccd || true+ defaults read com.apple.universalaccess 2>/dev/null || true+ for key in reduceTransparency increaseContrast reduceMotion; do+ defaults write com.apple.universalaccess "$key" -bool false || true+ sudo defaults write com.apple.universalaccess "$key" -bool false || true+ done+ killall cfprefsd || truesleep 2sw_verssystem_profiler SPDisplaysDataType | grep -E "Resolution|Chipset|Metal" || truediff --git a/scripts/glass-reference/reference.swift b/scripts/glass-reference/reference.swiftindex 72f4eb9d1..05e1a145a 100644--- a/scripts/glass-reference/reference.swift+++ b/scripts/glass-reference/reference.swift@@ -7,6 +7,7 @@//// Needs Screen Recording for the calling process (screencapture -l).import AppKit+import Metallet canvas = NSSize(width: 960, height: 600)@@ -204,6 +205,9 @@ let manifest: [String: Any] = ["canvas": [canvas.width, canvas.height],"scale": scale,"os": ProcessInfo.processInfo.operatingSystemVersionString,+ "reduceTransparency": NSWorkspace.shared.accessibilityDisplayShouldReduceTransparency,+ "increaseContrast": NSWorkspace.shared.accessibilityDisplayShouldIncreaseContrast,+ "gpu": MTLCreateSystemDefaultDevice()?.name ?? "none","shapes": shapes.map { ["name": $0.name, "rect": [$0.rect.minX, $0.rect.minY, $0.rect.width, $0.rect.height], "radius": $0.radius] },"tints": ["blue": [0.0, 0.533, 1.0, 0.6]],"cases": cases,