microsoft / microsoft/terminal

Profile icons not displayed when initialPosition is set to a value, that opens terminal on a second monitor

Open
#14,954 8 comments 0 reactions 0 assignees View on GitHub
Area-UserInterface Help Wanted Issue-Bug Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.16.10261.0

### Windows build number

10.0.19044.2604

### Other Software

_No response_

### Steps to reproduce

You need two monitors. The monitor on the left ist the primary display, the right monitor is the second display.

* reset Windows Terminal App to start with new configuration
* edit Windows Terminal `settings.json` and add the following line (before the "profile" attribute):
```json
"initialPosition": "1921,775",
```
* this line should position the terminal window **on the second display** (first display has FullHD resolution, so 1921px should be fine, 775 is just in my case a WQHD monitor, this positioned the window exactly over the task bar)
* restart Terminal and click on the profile-selection-button to see all profiles
* → all default profile icons are not displayed

![icons-missing](https://user-images.githubusercontent.com/33957949/223056788-b1ca9b0a-c4f3-4b78-9cb0-f50c8c3b250d.png)

### Expected Behavior

I expected to see all profile icons, even if the terminal starts on a second screen.

* if you uncommend the "initialPosition" line, and the terminal starts on the first monitor, all icons are displayed correctly (like in the screenshot)

![icons-shown](https://user-images.githubusercontent.com/33957949/223056751-82411f09-54b6-4d6d-a706-aadd497683e5.png)

In the settings window, all icons are **always** diplayed correctly.

### Actual Behavior

* if the "initialPosition" is set to a value that shows the termin window on another display, thats not the primary display, the icons are not shown (except for the ones added manually as PNG)

![icons-missing](https://user-images.githubusercontent.com/33957949/223056788-b1ca9b0a-c4f3-4b78-9cb0-f50c8c3b250d.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with two monitors using Windows Terminal settings.json and an initialPosition value that opens the window on the secondary display. Start by tracing initialPosition handling and profile-icon loading, then verify that the default icons appear in the profile-selection button on the secondary display as they do on the primary display.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.