Terminal: Terminal won't open maxmized when "Run" field in shortcut set to Maximized

Created on 10 Aug 2019  路  9Comments  路  Source: microsoft/terminal

Environment

Windows build number: 10.0.18956.1000

Windows Terminal version (if applicable): 0.3.2142.0

Steps to reproduce

Drag tile from Windows Start Menu to desktop to create Link shortcut. Right-click shortcut icon and select properties. Change Run field to Maxmimized. Hit Apply. Close properties. Double-click shortcut icon. Terminal window does not open maxmimized, or at least it doesn't move the window to the upper-left of the screen the same way it would if you hit the Maxmimize button or Windows Key + up-arrow.

Expected behavior

Terminal window should open Maxmimized in the upper-left of the Screen appearing full-screen for immediate use the same way it would as if you hit the Maximize button on the Terminal window or pressed Windows Key + up-arrow.

Actual behavior

Terminal window is opening, but is positioned offset to the lower-right from what is expected. This requires an extra keystroke or mouse movement to maximize the window properly, which is a real show-stopper for terminal dandies like myself who thing you should be able to hit your keyboard shortcut to launch your Terminal and then immediately start using it.

Mike-Levin-Desktop-Shortcuts
Mike-Levin-Bash-Terminal

Needs-Tag-Fix Needs-Triage Resolution-External

Most helpful comment

In what way is that a platform limitation? It works on all other apps, just not here on Microsoft Terminal, like the key place where it should work. Not being able to pull up a full-screen with the OS's built-in keyboard shortcut system is a pretty big deal. Maybe further research is necessary before closing.

All 9 comments

This is, unfortunately, a platform limitation. I have filed MSFT:23202140 on the appropriate team to see if we can't get something done about it.

In what way is that a platform limitation? It works on all other apps, just not here on Microsoft Terminal, like the key place where it should work. Not being able to pull up a full-screen with the OS's built-in keyboard shortcut system is a pretty big deal. Maybe further research is necessary before closing.

It's something that actually doesn't work for any _Win32 packaged applications_ ("Centennial apps"). For example, with Edge or any WSL distro, that doesn't necessarily work. The flag that checkbox sets isn't getting properly passed to the STARTUPINFO of a centennial application.

Maybe further research is necessary

Here's a snippet of the bug I filed on the team that owns "centennial" activation:

It is possible to create a shortcut to a centennial application using "shell:appsfolder" It is further possible to configure that shortcut to spawn the application in Maximized/Minimized/Normal windowing mode.

image

The WinMain entrypoint has a parameter, "nShowCmd", which should receive this information.

I have created an application that displays a messagebox containing the value of nShowCmd. Here's an example when i run it in different circumstances.

  • UNPACKAGED (raw EXE)

    • Double-clicked in explorer



      • image



    • From a shortcut marked RUN MAXIMIZED



      • image



  • PACKAGED (Centennial)

As you can see, the centennialized application never receives the show setting. This applies equally well to the App Execution alias.

Because of this, users who create shortcuts to traditional applications (including "Windows Terminal") distributed via centennialization will not be able to configure them to launch maximized.

This was reported by a member of the general public.

Would you like me to do more research?

Yes into a workaround. It's unreasonable for the main Microsoft Terminal app that's supposed to be a game changer and a big part of Microsoft's future to not be able to open maximized, LOL!

Maybe just the option of opening in true Maximized from Settings. There naturally needs to be a way to open a Terminal app fullscreen.

Dude I have the same felling, I just downloaded the thing to try it out and my first impression was: where's fullscreen?!

Dude I have the same felling, I just downloaded the thing to try it out and my first impression was: where's fullscreen?!

How do I launch directly into fullscreen mode is the first thing any real terminal person is going to think, right? If the desktop shortcut isn't the way to go because of of packaging details, then surely they can add it to the preferences config file.

@mikemaccana Alacritty works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alabuzhev picture alabuzhev  路  3Comments

mrmlnc picture mrmlnc  路  3Comments

TayYuanGeng picture TayYuanGeng  路  3Comments

DieselMeister picture DieselMeister  路  3Comments

dev-logan picture dev-logan  路  3Comments