Page 1 of 1

play sound at login

Posted: Sat Jul 31, 2010 9:09 pm
by jolato
After a lot of testing and searching for a solution to play a sound at login, I found a solution, however it needs some polish. When I login I managed to start audacious play an ogg file, but before that there are some other system-like sounds played.

My command I put in /etc/xdg/lxsession/LXDE/autostart

In preferences I disabled the login sound (preferences - login screen - play deselect login sound)

Where are the system sounds coming from ? Could be from the gnome session manager ? :?:

Re: play sound at login

Posted: Sun Aug 01, 2010 12:54 pm
by maces
Hi,

LXDE doesn't play any sounds on login. If there are sounds, they are added by your distro. Btw, what distro are you using?

maces

Re: play sound at login

Posted: Sun Aug 01, 2010 3:54 pm
by jolato
In ~/.config/autostart/ you can put an *.desktop file that contains:

[Desktop Entry]
Encoding=UTF-8
Name= Connect
Comment=Checks internet connectivity
Exec=/usr/bin/audacious /home/familie/.config/autostart/audio.sh >> log 2>&1
Terminal=true

That's how you start programs automatically under LXDE

My gnome session did this through the preferences - Startup Apps - Gnome play sound but I turned that off.

Re: play sound at login

Posted: Mon Aug 02, 2010 2:20 pm
by maces
If the *.desktop file is still there after disabling the sound in gnome, you should move or delete it.

maces