play sound at login

Please post all general support questions for LXDE here.
Locked
jolato
Posts: 2
Joined: Sat Jul 31, 2010 9:03 pm

play sound at login

Post 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 ? :?:
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: play sound at login

Post 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
jolato
Posts: 2
Joined: Sat Jul 31, 2010 9:03 pm

Re: play sound at login

Post 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.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: play sound at login

Post by maces »

If the *.desktop file is still there after disabling the sound in gnome, you should move or delete it.

maces
Locked