Windows Terminal crash when background image path contains tilde #5626

Open
opened 2026-01-31 00:17:45 +00:00 by claunia · 0 comments
Owner

Originally created by @patriksvensson on GitHub (Dec 17, 2019).

Environment

Windows build number: Microsoft Windows NT 10.0.19041.0
Windows Terminal version (if applicable): 0.7.3451.0

Steps to reproduce

In profiles.json under a profile, add a background image path that references the home directory ~.

{
    ...
    "profiles": [
        {
            "name": "Windows PowerShell",
            "backgroundImage": "~/Pictures/Console/PowerShell.png",
        }
    ...
}

Expected behavior

Should not crash. Should show the expected background image.

Actual behavior

Windows Terminal crash at startup.

Originally created by @patriksvensson on GitHub (Dec 17, 2019). # Environment ```none Windows build number: Microsoft Windows NT 10.0.19041.0 Windows Terminal version (if applicable): 0.7.3451.0 ``` # Steps to reproduce In `profiles.json` under a profile, add a background image path that references the home directory `~`. ```json { ... "profiles": [ { "name": "Windows PowerShell", "backgroundImage": "~/Pictures/Console/PowerShell.png", } ... } ``` # Expected behavior Should not crash. Should show the expected background image. # Actual behavior Windows Terminal crash at startup.
claunia added the Resolution-Duplicate label 2026-01-31 00:17:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5626