28th December 2016, 9:37
(28th December 2016, 9:16)iamkneo Wrote:(28th December 2016, 7:38)Zelator57 Wrote: You need a script. In System Settings / Startup and Shutdown, click "Add script" and navigate to the script.
My script is very simple...
I couldn't get this script to work as is. Used the sound file as fanisatt had and I changed the script as follows:
Code:!/bin/bash
sleep 10
#
# - kept in ~/sbin
#
# - uses paplay to run a logon sound
#
#
paplay /usr/share/sounds/desktop-login.ogg
I saved the script I created in Kate under the name 'start_sound.script' and set under Properties/Permissions 'Is Executable.'
I then setup the script as Zelator57 had stated, navigating to "System Settings / Startup and Shutdown, click "Add script" and navigate to the script."
I had to uncomment the first line in the script so that bash would open and run it.
With my system the sleep delay of 10 is just right for the sound to start just as the desktop appears.
I am sure there is another way to do this, but this is the first script I've messed with in Linux. I'm still a bit of a newbie and I had to work at this a little bit to see what would do it for me.
Sorry, yes, you would refer to the file you wanted played.