Startup Sounds Don't Work
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Startup Sounds Don't Work
I'm new to LMDE, though I've been using Linux for 8 years and Ubuntu/Debian for 5 years. So far It's been quite easy to get things up and running to my satisfaction, but one minor issue is bugging me. Startup sounds do not work for me. Sound, in general, is fine. The "Gnome Login Sound" is listed in the Startup section of preferences, and enabled. If I run the command (/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login") in a terminal window, it plays a wonderful login sound. Other startup apps are fine. But for some reason "Gnome Login Sound" does not play at login.
Has anyone else hit this?
Thanks.
NOTE: I also tried prepending a "sleep 10" to the command to make certain that it wasn't an ordering issue in startup apps, but that didn't work either. I'm really puzzled.
Has anyone else hit this?
Thanks.
NOTE: I also tried prepending a "sleep 10" to the command to make certain that it wasn't an ordering issue in startup apps, but that didn't work either. I'm really puzzled.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Startup Sounds Don't Work
Seconded, I have the same issue. Could not find any further info on the forums, any hep appreciated
Re: Startup Sounds Don't Work
Hi,
same issue for me too (LMDE 32 bits now changed to latest repo).
same issue for me too (LMDE 32 bits now changed to latest repo).
Re: Startup Sounds Don't Work
Maybe I can help you. I posted this problem on june 18th.
Here's a reply to my posting:
http://forums.linuxmint.com/viewtopic.p ... 00#p436686
Here's a reply to my posting:
http://forums.linuxmint.com/viewtopic.p ... 00#p436686
Re: Startup Sounds Don't Work
Thanks, and before we go ahead with this, did it fix the issue?Maybe I can help you. I posted this problem on june 18th.
Here's a reply to my posting:
viewtopic.php?f=141&t=67502&start=600#p436686
Re: Startup Sounds Don't Work
I could never get the mint-theme sounds that I originally heard upon start-up/login... never returned after that breakage. My LMDE system was busted after that, and I moved over to Mint 10/11, at least and until the LMDE "new-and-improved" re-spin is released in a week or so.
I am currently enjoying not having all the seemingly daily/weekly stresses and breakages of LMDE by using Mint 10 and/or Mint 11...and I am enjoying a gorgeous Michigan summer. I do foresee myself trying the LMDE-2 (respin) after it is released...but I will not get serious with it until after the end of summer...(after Labor Day).
Regards!
I am currently enjoying not having all the seemingly daily/weekly stresses and breakages of LMDE by using Mint 10 and/or Mint 11...and I am enjoying a gorgeous Michigan summer. I do foresee myself trying the LMDE-2 (respin) after it is released...but I will not get serious with it until after the end of summer...(after Labor Day).
Regards!
Re: Startup Sounds Don't Work
I tried applying the patch and recompiling... but no luck.
Re: Startup Sounds Don't Work
I installed LMDE last week and noticed no login sound, been having a play today, it looks like a bug and I can't see how to fix it properly BUT I have a workaround.
open terminal
run
untick "Gnome Login Sound" and close it
then run
you should see
delete the line starting "AutostartCondition=" and change the last line to true, then save it.
then run
it should now work.
Two things to consider
1. if you tick the "Gnome Login Sound" box again it destroys everything you just did.
2. you could save it as something else and it should work as well, e.g. my-login-sound.desktop then chmod +x it.
Background
I noticed that when you untick something in Startup Application Preferences it put a non-executable .desktop file in the autostart folder, but when you tick it then it disappears but I can't figure out where it stores it! I found out the other day when playing with LXDE to run commands at login you can create an executable .desktop file in that folder.
open terminal
run
Code: Select all
gnome-session-properties
then run
Code: Select all
gedit '.config/autostart/libcanberra-login-sound.desktop'
Code: Select all
[Desktop Entry]
Type=Application
Name=GNOME Login Sound
Comment=Plays a sound whenever you log in
Exec=/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"
OnlyShowIn=GNOME;
AutostartCondition=GSettings org.gnome.desktop.sound event-sounds
X-GNOME-Autostart-Phase=Application
X-GNOME-Provides=login-sound
X-GNOME-Autostart-enabled=false
then run
Code: Select all
chmod +x '.config/autostart/libcanberra-login-sound.desktop'
Two things to consider
1. if you tick the "Gnome Login Sound" box again it destroys everything you just did.
2. you could save it as something else and it should work as well, e.g. my-login-sound.desktop then chmod +x it.
Background
I noticed that when you untick something in Startup Application Preferences it put a non-executable .desktop file in the autostart folder, but when you tick it then it disappears but I can't figure out where it stores it! I found out the other day when playing with LXDE to run commands at login you can create an executable .desktop file in that folder.
Re: Startup Sounds Don't Work
hi, ginjabunny
tried your solution in a full updated incoming-tracking LMDE and it works
if you don't mind i'm going to post this solution here http://forums.linuxmint.com/viewtopic.p ... &start=880
tried your solution in a full updated incoming-tracking LMDE and it works
if you don't mind i'm going to post this solution here http://forums.linuxmint.com/viewtopic.p ... &start=880
Re: Startup Sounds Don't Work
ginjabunny,
your workaround solved my same problem.
many thanks
your workaround solved my same problem.
many thanks
Re: Startup Sounds Don't Work
The almost same workaround, but without using the terminal :
Note 2 : The differences between the "Gnome Login Sound" and the new "program" are invisible when you use the "GUI" way to do 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.
- 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 2 : The differences between the "Gnome Login Sound" and the new "program" are invisible when you use the "GUI" way to do 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.
Last edited by jcbrinfo on Mon Apr 09, 2012 11:14 am, edited 1 time in total.
Re: Startup Sounds Don't Work
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 commandjcbrinfo wrote:The almost same workaround, but without using the terminal :Note : Because I have tried this with the french version of the GUI, the name of the features may not be what I wrote.
- 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 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.
aplay /usr/share/sounds/linuxmint-login.wav
And now it plays.
Re: Startup Sounds Don't Work
Of all the solutions I've tried, this simple fix is the only one that works.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
aplay /usr/share/sounds/linuxmint-login.wav
And now it plays.