Tier 0: render what the services already decided, honestly
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -70,6 +70,17 @@ Singleton {
|
||||
return real !== "" ? real : String(user?.userName ?? "");
|
||||
}
|
||||
|
||||
// The home directory accountsservice reports for an account, which is not
|
||||
// reliably "/home/" + userName: a home can be moved, or live on another
|
||||
// mount entirely. Empty when the helper reported none -- and empty is the
|
||||
// caller's cue to name the directory in words rather than to construct a
|
||||
// path, because a guessed path inside the confirmation for an irreversible
|
||||
// deletion is the app being most confident about the one thing it does not
|
||||
// actually know.
|
||||
function homeDirectory(user: var): string {
|
||||
return String(user?.homeDirectory ?? "").trim();
|
||||
}
|
||||
|
||||
function refresh(): void {
|
||||
if (query.running)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user