答案1
对于登录声音,编辑文件/usr/share/gnome/autostart/libcanberra-login-sound.desktop
并将行X-GNOME-Autostart-enabled=false
改为X-GNOME-Autostart-enabled=true
修改内容:
[Desktop Entry]
Type=Application
Name=GNOME Login Sound
Comment=Plays a sound whenever you log in
Exec=/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
OnlyShowIn=GNOME;Unity;
AutostartCondition=GSettings org.gnome.desktop.sound event-sounds
X-GNOME-Autostart-Phase=Application
X-GNOME-Provides=login-sound
X-GNOME-Autostart-enabled=true
NoDisplay=true
对于注销声音,有一个已报告的错误https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/214370我尝试过让它发生但是失败了。
你可以从此链接寻找声音主题https://www.debugpoint.com/2018/08/how-install-sound-themes-ubuntu-linux/