From 330fb992045599284093d6fa2180b4ca97091ccb Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 10 Mar 2015 17:18:34 -0400 Subject: Ensure that on session-start the audio volume is reset back to the previously-used value before starting the login chimes. --- lumina-desktop/LSession.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lumina-desktop/LSession.cpp') diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index aac550c1..8eef0b95 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -205,6 +205,9 @@ void LSession::launchStartupApps(){ //Now play the login music if(sessionsettings->value("PlayStartupAudio",true).toBool()){ + //Make sure to re-set the system volume to the last-used value at outset + int vol = LOS::audioVolume(); + if(vol>=0){ LOS::setAudioVolume(vol); } LSession::playAudioFile(LOS::LuminaShare()+"Login.ogg"); } if(sessionsettings->value("EnableNumlock",true).toBool()){ -- cgit