原因
安装了wine TIM等应用,所以安装了gnome-settings-daemon,这个东西造成了影响。
解决方法
很多地方都说执行下面这条指令。
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
但是我得到了以下提示:
Lib-GIO-Message: 22:13:28.849: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
这是因为没有GIO_EXTRA_MODULES
环境变量,需要通过以下指令加上这个环境变量。
export GIO_EXTRA_MODULES=/usr/lib/gio/modules/
注意: 这个环境变量的地址也可能为/usr/lib/x86_64-linux-gnu/gio/modules/
,或者你自己cd
到目录里面去看看到底在哪里,然后执行export
指令。