我使用以下方式安装了便携式 Chromehttps://github.com/shivamgly/Google-Chrome-Portable-maker-for-linux 此链接我无法运行此 chrome。Chrome.desktop 文件在文本编辑器中打开。
安装文件夹的屏幕截图:
.desktop 文件代码
[Desktop Entry]
Name=Chrome Portable
Type=Application
Exec=sh -c 'if [ `ls -ial "$(dirname "$*")"/data/chrome-sandbox | cut -d\ -f4,5 | sed -r "s/ /:/g"` != root:root ]; then echo "sudo chown root:root data/chrome-sandbox\nsudo chmod 4755 data/chrome-sandbox\nrm -f execute_this.sh\nenv HOME=\"\$(dirname \"\$*\")\"/data/VHOME data/launcher >/dev/null 2>&1 &" > "$(dirname "$*")"/execute_this.sh; fi; if [ `ls -ial "$(dirname "$*")"/data/chrome-sandbox | cut -d\ -f2` != -rwsr-xr-x ]; then echo "sudo chown root:root data/chrome-sandbox\nsudo chmod 4755 data/chrome-sandbox\nrm -f execute_this.sh\nenv HOME=\"\$(dirname \"\$*\")\"/data/VHOME data/launcher >/dev/null 2>&1 &" > "$(dirname "$*")"/execute_this.sh; fi; env HOME="$(dirname "$*")"/data/VHOME "$(dirname "$*")"/data/launcher' dummy %k
Icon=google-chrome