Techyou labs
真正的爱应该超越生命的长度,心灵的宽度,灵魂的深度
常用标签
您正在查看:2018年12月
December 2, 2018

现在linux的发行版默认gnome3了,默认带了个online account service,对接主流互联网公司的账户系统。对国内用户来说没什么用。


renothing@desktop:~$ ps aux|grep goa
renothi+  1902  0.0  0.1 259268  5552 ?        Sl   17:59   0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
renothi+  1906  1.0  0.9 118201976 35796 ?     Sl   17:59   0:05 /usr/lib/gnome-online-accounts/goa-daemon
renothi+  1916  0.0  0.1 356844  6424 ?        Sl   17:59   0:00 /usr/lib/gnome-online-accounts/goa-identity-service
renothi+ 15154  0.0  0.0  15964   976 pts/1    S+   18:07   0:00 grep --color=auto goa

对于的启动文件在这里 /usr/share/dbus-1/services/org.gnome.OnlineAccounts.service


[D-BUS Service]
Name=org.gnome.OnlineAccounts
Exec=/usr/lib/gnome-online-accounts/goa-daemon

以及 /usr/share/dbus-1/services/org.gnome.Identity.service


[D-BUS Service]
Name=org.gnome.Identity
Exec=/usr/lib/gnome-online-accounts/goa-identity-service

因为是gnome基础依赖,又无法删除,简单粗暴干掉它,又不破坏系统依赖。


cd /usr/share/dbus-1/services
sudo ln -snf /dev/null org.gnome.OnlineAccounts.service
sudo ln -snf /dev/null org.gnome.Identity.service

重启后系统清净了。

update 2019-08-08

18.04以上的系统,可以通过dconf禁用他,只针对单个用户生效:


apt-get install dconf-editor

然后打开dconf-editor,找到 /org/gnome/online-accounts
编辑


whitelisted-providers= ['all']


whitelisted-providers= ['']

即可。

参考: