Windowsã§è²ã ãªè¡ãããã«ãªã£ã¦ä¸ä¾¿ãªã®ãè¦å®ã®ãã©ã¦ã¶ã®åãæ¿ãã§ããã ã³ã³ããã¹ãï¼URLã®ä¸èº«ãç¾å¨èµ·åãã¦ãããã©ã¦ã¶ãªã©ãªã©ï¼ã«ãã£ã¦Slack, Discordãªã©ã®ã¢ããªããURLãã¯ãªãã¯ããå ´åã«èµ·åãããã©ã¦ã¶ããããã¡ã¤ã«ãå¤æ´ãããã
ãããããã¼ã«ããªãã調ã¹ãã¨ãã Browser Picker ã¨ãããã®ãããããããããã¨ã®8å²ã¯ã§ããã®ã§ããã§ããæãã ã£ãããã ä¸ç¹ãç´°ããä¸æºãããã¨ããã°èµ·åãé
ããã¨ã§ããããªã³ã¯ãã¯ãªãã¯ãããã¨ãä¸ç¬é
ãã¦ãã©ã¦ã¶ãèµ·åããã®ã§ãã£ãããæããã.net
ã¨C#ã§æ¸ããã¦ããããã ããã
ææ ¢ã§ããªãã»ã©ã§ã¯ãªãããããæ©ä¼ãªã®ã§èªåã§ä½ã£ã¦ã¿ããã¨æã£ãã®ã以ä¸ã®ãã®ã§ãã
ã¢ã¼ããã¯ãã£
Visual C++ 2022ã§Windows APIãã´ãªã´ãªã«ä½¿ãå½¢ã§ãã£ã¦ãããC/C++ãããç¨åº¦ãããã®ã§ããããã¨æã£ãããLinux / UNIXã£ã½ããã®ã«æ £ãã人éã¨ãã¦ã¯å¥ã®å®å®ã¨ãããå¦ç¿ã³ã¹ããé«ããããChatGPT ã®å©ããåããªãããã®å°ããã¢ããªã±ã¼ã·ã§ã³ãä½ãã®ã§ããè¦å´ããã
解決ãããã¨
èªç±ã«ãã¸ãã¯ãæ¸ããã®ã§ãããããã¨ã¯å ¨é¨ã§ããããã«ãªã£ããã¾ãBrowser Pickerã§æãã¦ããåä½ã®ãã£ããã¯å®å ¨ã«ãªããªãããã¤ãã£ãã«ãã©ã¦ã¶ã§URLãéãããã®ã¨éè²ãªãã¹ãã¼ãã¨ãªã£ãã
ç¾ç¶ã®åé¡ç¹
ããããããã¯Windows 11ã®å¶éãªã®ã ããã¬ã¸ã¹ããªãã©ãè¨å®ãã¦ãè¨å®ã¢ããªããHTTP/HTTPSã«ãã®ã¢ããªãé¸æãããã¨ãã§ããªããã©ããHTTP/HTTPS/MAILTOãªã©ã®ãªã³ã¯ç³»ã®é¢é£ä»ãã«ã¯ã¢ããªãWindowsã«ã¤ã³ã¹ãã¼ã« / ç»é²ããã¦ããå¿ è¦ãããã®ãããããªãã
妥åæ¡
ããBrowser Pickerã¯ãããªãã®ã§ãã¬ã¸ã¹ããªã®Browser Pickerã®èµ·åã³ãã³ããèªä½ãã¼ã«ã®å®è¡ãã¡ã¤ã«ã«æ¸ãæããã¨ããããã£ããåãã
[HKEY_CLASSES_ROOT\BrowserPicker\shell\open\command] @="\"C:\\BrowserLauncher\\BrowserLauncher\\x64\\Debug\\BrowserLauncher.exe\" \"%1\""
éç¶ã¨ããªããããã®ã¡ãã£ã¨ããèªåç¨ãã¼ã«ã§ã¤ã³ã¹ãã¼ã«ã®ä»çµã¿ï¼ããããããããç½²åé¢ä¿ãªã©ï¼ã¾ã§å°å ¥ããããæ°ã¯ãªãã®ã§ãã®ã¾ã¾ã§ãã
Windowsããå°ããã®è¾ºèªç±åº¦é«ãã¨ãããã