休息的时候无聊,打开Kali,突然想起这回事
GUI Solution
.desktop
右键桌面的code.desktop,移至Properties——Launcher——Command处,修改代码为
/usr/share/code/code --unity-launch --no-sandbox%F
start menu
右上角开始菜单,搜索框里输入vscode,右键选择Edit Launcher,在command处修改代码为
/usr/share/code/code --unity-launch --no-sandbox%F
Terminal Solution
打开Terminal,因为kali默认的shell是zsh,所以我们输入如下
vim ~/.zshrc
按a进入编辑模式,加入一行代码
alias code='/usr/share/code/code . --no-sandbox --unity-launch'
编辑完成后ESC退出,输入:wq保存并退出,然后在Terminal上输入
source ~/.bashrc
这样Terminal的code就能正常运行了
code

得监督自己早点把opcache-crafter的wp研究透彻 嗯
参考链接
https://blog.csdn.net/gehong3641/article/details/119520492
Q.E.D.