-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wt.exe from command line with named console binary picks the wrong tab icon and wrong tab title #7552
Comments
It looks like Windows Terminal does not attempt to use the icon and title of the command at all. I have Git Bash as the default profile, and if I run In the console host ( What is wrong with using the background image of the default profile? |
@KalleOlaviNiemitalo I use profile specific backgrounds. One for Debian, one for PoweShell, and so on. Calling It's not the bug that will hinder Windows Terminal from shipping, but it's also Not Right^tm |
Perhaps
That would solve the background image issue but would still not use a command-specific icon and title. |
So, this is going to become more important once we land #492. The solution we're going to go with in the interim is...
I don't think we can generally grab icons from whatever you launch (without grovelling in the process tree to figure out whose executable is on the hook for running a given commandline), but we can definitely fall back to a default icon. Perhaps we should do the process tree thing. When we apply this change to commandline invocation (which I do think we should), there will be a split between After we land that, we can talk about process name matching. ConEmu supports taking over as the default terminal on Windows, and it lets you specify "when x.exe is running, my profile is y". We should absolutely have something similar. After that, we can hook up default mappings (any cmd.exe => |
As a workitem that's going to require nontrivial work and design discussion even though its outward appearance is that of a bug, this is going to be one of our rare "task-bugs". |
/cc @miniksa this is topical for your recent defterm investiation |
We probably want to document what we want to do here, since this isn't the defeterm scenario. We'll use #14372 for the "defterm" version. This thread might turn into something like:
or something like, "When |
Hmm. This is... trickier than it might seem on the surface. Cause here's the thing - we almost always get the tab icon from the profile directly. That's right. So in the Goddard, options:
Okay so option 1 - put the icon in the pane. Follow-up problem: now, when the settings reload, we have to re-use that commandline to rebuild what the icon for the pane should be. Barf. |
Nope, no, it won't. It'll still try to pick the icon of the profile, because we still don't do the |
Environment
Steps to reproduce
start Windows terminal from console or Run... with a chosen named .exe that produces console output.
eg. win+R
wt thiscommandisjustanexample
enter(picking a binary that actually does exist is not making a difference for this bug)
Expected behavior
Tab gets it's title from the binary's name
Tab gets it's icon from the called binary / tab gets a generic console-binary icon, since the binary does not contain one
Actual behavior
The tab inherits several pieces of behaviour from the default profile.
This includes,
settings.json
settings.json
settings.json
Reflection
You are just applying the default profile to anything unknown that runs, don't you?
Awesome. In that case, I guess, Windows Terminal requires a hidden default profile that is invoked if nothing else applies. Instead of just picking the one that is opened as default on start.
The text was updated successfully, but these errors were encountered: