gerardog / gsudo

Sudo for Windows

Home Page:https://gerardog.github.io/gsudo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue: Window Title prefix stay "Administrator:" after execution gsudo

237dmitry opened this issue · comments

Issue Description

After execution command the window title stay in Administrator: <title> format

Steps to Reproduce

PS > gsudo cleanmgr

# After execution the title stay "Administrator"
# I have to set it back manually:

PS > $host.ui.rawui.windowtitle = "pwsh " + $PSVersionTable.PSVersion

I don't know what changes the title of the window. gsudo or Windows.

Context:

  • Windows version: Win11 22H2
  • gsudo version: 2.0.9
  • Windows terminal, conhost

I have the same problem as well. It doesn't matter what program I execute with GSUDO, the window title is never changed back to a non-administrator title.

Fixed on v2.4.0
Thanks for reporting!