gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'

如果有报错,尝试导入临时环境变量

export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/