LoginSignup
4
1

More than 3 years have passed since last update.

Windowsの「ファイル名を指定して実行」で「chrome」と打つとGoogle Chromeが起動する理由

Posted at

Pathが通ってないのに起動した

Windows10の「ファイル名を指定して実行」で「chrome」と打つと、GoogleChromeが起動した。
当然GoogleChromeの実行ファイルが置いてあるフォルダにPathが通っているからなんだろうな…
と思っていて環境変数の一覧を見たら、Pathにはchrome.exeのフォルダは存在しなかった。

なぜ起動するの???

仕組み

↓こちらをご参照ください
Microsoft Windows Dev Center : Application Registration

レジストリの中に「App Paths」というキーがあり、そこに「chrome.exe」が登録されているから、でした。

The entries found under App Paths are used primarily for the following purposes:
・To map an application's executable file name to that file's fully qualified path.
・To pre-pend information to the PATH environment variable on a per-application, per-process basis.

システム環境変数のPathに書くのではなく、アプリの中でプロセス単位で環境変数に入れてくれるみたいです。
権限局所化の一環ということでしょうか。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1