This is a step by step guide shows you how to enable the event sounds (system sound or custom sound) for login and log out actions in Ubuntu 24.04 LTS.
When booting Ubuntu 24.04 from a live USB, it plays a sound after logged into the desktop. The sound however does no longer play after installed the system on your disk. So, here I’m going to show you how to re-enable this feature.
NOTE: This tutorial is tested and works in my case in Ubuntu 24.04. It MAY also work in old Ubuntu releases and even other Linux, but for GNOME Desktop only.