#!/usr/bin/env python3
"""
set_show_this_p_c_on_desktop.py

Show This PC Icon on Desktop.
Adds the This PC icon back to the desktop.

Usage:
    python set_show_this_p_c_on_desktop.py
"""

import winreg


def main() -> None:
    key = winreg.CreateKeyEx(
        winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", 0, winreg.KEY_SET_VALUE
    )
    winreg.SetValueEx(key, "{20D04FE0-3AEA-1069-A2D8-08002B30309D}", 0, winreg.REG_DWORD, 0)
    winreg.CloseKey(key)
    print("Show This PC Icon on Desktop applied.")


if __name__ == "__main__":
    main()