Giter Club home page Giter Club logo

openwthere's Introduction

在这里打开Windows Terminal

使用效果

右键效果

这个程序做了什么?

  • 读取你的 Windows Terminal 配置
  • %LOCALAPPDATA% 中创建文件夹 wtRightClick 并写入配置文件(Custom.jsonInstalled.json)和图标 terminal.ico
  • 向注册表写入内容
    HKEY_CLASSES_ROOT\Directory\shell\MenuWindowsTerminal
    HKEY_CLASSES_ROOT\Directory\background\shell\MenuWindowsTerminal
    HKEY_CLASSES_ROOT\Directory\LibraryFolder\shell\MenuWindowsTerminal
    HKEY_CLASSES_ROOT\Drive\shell\MenuWindowsTerminal
    HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\MenuWindowsTerminal
    "MUIVerb"="%右键名称%"
    "Icon"="%LOCALAPPDATA%\wtRightClick\terminal.ico"
    "ExtendedSubCommandsKey"="Directory\ContextMenus\MenuWindowsTerminal"
    HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuWindowsTerminal\shell\%i%-%name% "MUIVerb"="%配置别名%"
    "ExtendedSubCommandsKey"=-
    "Icon"="%配置图标%"
    HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuWindowsTerminal\shell\%i%-%name%\command @="$(where wt.exe) -p "%配置名%" -d "%V.""

十亿个为什么?

为什么要这样搞?

  • cd c 到烦
  • System32!

为什么用C# WPF

  • 因为好用。

为什么不直接请求管理员权限

  • 总有人认为不安全.............

为什么用下载的ICO文件而不直接用Windows Terminal.exe

  • 因为路径里面包含版本号(并且没有软链接(ljWindows)),路径会变。

在?图标?

  • 懒!

openwthere's People

Contributors

boringcat avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.