Debian Google Chrome
2013-10-28 12:49
357 查看
vi /etc/apt/sources.list.d/google-chrome.list
deb http://dl.google.com/linux/deb/ stable main
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
apt-get update
apt-get install google-chrome-stable
Google Chrome can not be run as root
mkdir /home/chrome
chmod 777 /home/chrome
vi /usr/share/applications/google-chrome.desktop
[Desktop Entry]
Exec=/opt/google/chrome/google-chrome %U --user-data-dir=/home/chrome
Applications Menu - Settings - Preferred Applications, select google-chrome
vi ~/.local/share/xfce4/helpers/custom-WebBrowser.desktop
X-XFCE-Commands=/opt/google/chrome/google-chrome --user-data-dir=/home/chrome
Google Chrome isn't your default browser. Don't ask again.
I saw in my programs properties they have a "%u" in the end of the command, what does this do?
e.g. My Chrome have the command: /opt/google/chrome/google-chrome %U for what this %u is used here?
When you associate a file with a command, you can call this command with several arguments. %u simply means that the file name should go there. It is useful so you can put arguments after the filename. There are several other flags you can use.
http://superuser.com/questions/138433/what-is-the-u-command-in-all-my-programs-command
deb http://dl.google.com/linux/deb/ stable main
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
apt-get update
apt-get install google-chrome-stable
Google Chrome can not be run as root
mkdir /home/chrome
chmod 777 /home/chrome
vi /usr/share/applications/google-chrome.desktop
[Desktop Entry]
Exec=/opt/google/chrome/google-chrome %U --user-data-dir=/home/chrome
Applications Menu - Settings - Preferred Applications, select google-chrome
vi ~/.local/share/xfce4/helpers/custom-WebBrowser.desktop
X-XFCE-Commands=/opt/google/chrome/google-chrome --user-data-dir=/home/chrome
Google Chrome isn't your default browser. Don't ask again.
I saw in my programs properties they have a "%u" in the end of the command, what does this do?
e.g. My Chrome have the command: /opt/google/chrome/google-chrome %U for what this %u is used here?
When you associate a file with a command, you can call this command with several arguments. %u simply means that the file name should go there. It is useful so you can put arguments after the filename. There are several other flags you can use.
http://superuser.com/questions/138433/what-is-the-u-command-in-all-my-programs-command
相关文章推荐
- Google Chrome 59 Released – Install on Debian, Ubuntu and Linux Mint
- [Kali_Debian] 清除无用的库文件(清理系统,洁癖专用)-布布扣-bubuko.com - Google Chrome
- debian图形界面安装安装GNOME中文桌面环境_刀光剑影_新浪博客 - Google Chrome
- Debian GNU/Hurd 2013发布
- debian添加快捷启动方式
- Debian 7 安装 Nvidia 显卡驱动
- 一次硬盘安装debian的过程
- debian7 64bit搭建android开发环境ADT Bundle
- Debian Wheezy 64 - 解决插ntfs格式的u盘或者移动硬盘时报错,不能自动挂载
- Debian下安装配置fcitx
- google chrome 浏览器 必备插件
- debian 7 (wheezy)下安装运行vmware workstation 9 之弹窗 “VMware Kernel Module Updater” 错误解决方案
- Linux(Ubuntu/GNU Debian)下Eclipse安装中文插件的方法
- Debian安装中文包和输入法(针对中文无法显示)
- Google Chrome 快捷键大全
- Google Chrome源码下载
- Debian下如何配置apt-get源以在线安装文件
- Google Chrome 和 Chromium 的区别
- debian下配置keepalived ha
- Google Chrome中的高性能网络 (三)