我不懂 C++,最近在摸索着改 shuax 的https://github.com/shuax/chrome_plus
,在里面增加一个--load-extension
,该参数的值已经获取成功,可是却遇到一个奇怪的现象,不会调试,所以也不知道是什么错误,请大家帮忙看看
如上图是写 log 的位置
3 个扩展,chrome 正常启动
[chrome++]extList: --load-extension="D:\SynologyDrive\Chrome\Extensions\ablbagjepecncofimgjmdpnhnfjiecfm\0.7.2_0,D:\SynologyDrive\Chrome\Extensions\dmkamcknogkgcdfhhbddcghachkejeap\0.10.5_0,D:\SynologyDrive\Chrome\Extensions\nkbihfbeogaeaoehlefnkodbefgpgknn\10.14.6_0"
[chrome++]JoinArgsString: "--profile-directory=Profile 2" --shuax --disable-quic --disable-features=RendererCodeIntegrity,FlashDeprecationWarning,SidePanel --disk-cache-dir=D:\SynologyDrive\Chrome\Cache --user-data-dir=D:\SynologyDrive\Chrome\Data --load-extension="D:\SynologyDrive\Chrome\Extensions\ablbagjepecncofimgjmdpnhnfjiecfm\0.7.2_0,D:\SynologyDrive\Chrome\Extensions\dmkamcknogkgcdfhhbddcghachkejeap\0.10.5_0,D:\SynologyDrive\Chrome\Extensions\nkbihfbeogaeaoehlefnkodbefgpgknn\10.14.6_0"
[chrome++]args: "--profile-directory=Profile 2" --shuax --disable-quic --disable-features=RendererCodeIntegrity,FlashDeprecationWarning,SidePanel --disk-cache-dir=D:\SynologyDrive\Chrome\Cache --user-data-dir=D:\SynologyDrive\Chrome\Data --load-extension="D:\SynologyDrive\Chrome\Extensions\ablbagjepecncofimgjmdpnhnfjiecfm\0.7.2_0,D:\SynologyDrive\Chrome\Extensions\dmkamcknogkgcdfhhbddcghachkejeap\0.10.5_0,D:\SynologyDrive\Chrome\Extensions\nkbihfbeogaeaoehlefnkodbefgpgknn\10.14.6_0"
4 个以上扩展时,chrome 启动失败
args:
这行 log 没有,似乎是std::wstring args = GetCommand(param);
错误了
[chrome++]extList: --load-extension="D:\SynologyDrive\Chrome\Extensions\ablbagjepecncofimgjmdpnhnfjiecfm\0.7.2_0,D:\SynologyDrive\Chrome\Extensions\dmkamcknogkgcdfhhbddcghachkejeap\0.10.5_0,D:\SynologyDrive\Chrome\Extensions\nkbihfbeogaeaoehlefnkodbefgpgknn\10.14.6_0,D:\SynologyDrive\Chrome\Extensions\padekgcemlokbadohgkifijomclgjgif\2.5.21_0"
[chrome++]JoinArgsString: "--profile-directory=Profile 2" --shuax --disable-quic --disable-features=RendererCodeIntegrity,FlashDeprecationWarning,SidePanel --disk-cache-dir=D:\SynologyDrive\Chrome\Cache --user-data-dir=D:\SynologyDrive\Chrome\Data --load-extension="D:\SynologyDrive\Chrome\Extensions\ablbagjepecncofimgjmdpnhnfjiecfm\0.7.2_0,D:\SynologyDrive\Chrome\Extensions\dmkamcknogkgcdfhhbddcghachkejeap\0.10.5_0,D:\SynologyDrive\Chrome\Extensions\nkbihfbeogaeaoehlefnkodbefgpgknn\10.14.6_0,D:\SynologyDrive\Chrome\Extensions\padekgcemlokbadohgkifijomclgjgif\2.5.21_0"
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.