Name=GNOME Login Sound
Comment=Plays a sound whenever you log in
Exec=/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
AutostartCondition=GSettings org.gnome.desktop.sound event-sounds
chmod +x '.config/autostart/libcanberra-login-sound.desktop'
jcbrinfo wrote:The almost same workaround, but without using the terminal :
- Launch the control center.
- Go to "Applications on starting" (or something like that).
- In the list, select "Gnome Login Sound".
- Click on "Edit...".
- Copy the command.
- Click on "Cancel".
- Uncheck "Gnome Login Sound".
- Click on "Add".
- Give a significant name to this "program" (this "program" will be used as an alternative to "Gnome Login Sound").
- Past the command in the appropriate field.
- Click on "Add". The new "program" will be checked by default.
- Click on "Close".
Note : Because I have tried this with the french version of the GUI, the name of the features may not be what I wrote.
Note 2 : The differences between the "Gnome Login Sound" and the new "program" are invisible when you use the "GUI" way to the trick. In fact, these differences correspond to the "X-GNOME-", the "AutostartCondition" and the "OnlyShowIn" lines in thier *.desktop file.
Note 3: You can switch between the two "programs" by checking / unchecking them in the "Applications on starting" dialog.
Note 4 : Try to avoid to have the two "programs" checked at the same time.
Hi, I also used your method but there were two problems on my system. The command to play the sound was not installed and the Gnome Login sound file did not exist. So I just created a new Autostart entry with the command
And now it plays.
Users browsing this forum: No registered users and 3 guests