From 7f764fddc9eca1e5b2062fde369d70ecc2b9fa3b Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 15 Nov 2026 08:55:53 +0000 Subject: [PATCH] mcde-keytest: the fresh home gets the session's folders (t0222) A session creates Desktop, Documents, Downloads, Pictures, Music and Network (programs/dtlogin/config/0075.homefolders). The test's new home had none, so a program that writes "to the Desktop" fell back to the home directory and the screenshot check counted 0 before and 0 after while "Screenshot 2026-11-15 at 08.49.33.png" lay in $HOME (t0222, measured). With the folders, the same run says: 0 before, 1 after, "Screenshot 2026-11-15 at 08.51.30.png" (build/logs/mcde-keytest-2026-11-15f.txt). --- tools/mcde-keytest.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/mcde-keytest.sh b/tools/mcde-keytest.sh index 0ff1d30fb9..bd991e2450 100755 --- a/tools/mcde-keytest.sh +++ b/tools/mcde-keytest.sh @@ -33,6 +33,13 @@ n=0 H=$TOP/build/mcde-keytest-home rm -rf "$H" mkdir -p "$H/.dt" +# A session's home has Desktop, Documents, Downloads, Pictures, Music and +# Network (programs/dtlogin/config/0075.homefolders): without them a program +# that writes "to the Desktop" falls back to the home directory and a test +# that looks on the Desktop sees nothing. +for d in Desktop Documents Downloads Pictures Music Network; do + mkdir -p "$H/$d" +done Xvfb $DISP -screen 0 1280x800x24 -nolisten tcp > /dev/null 2>&1 & xpid=$!