aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-10 17:18:34 -0400
committerKen Moore <ken@pcbsd.org>2015-03-10 17:18:34 -0400
commit330fb992045599284093d6fa2180b4ca97091ccb (patch)
treea78b5158ea306697bfda450a5bfae6ea46f1ec60 /lumina-desktop/LSession.cpp
parentClean up the rest of the xrandr parsing to account for some other variations ... (diff)
downloadlumina-330fb992045599284093d6fa2180b4ca97091ccb.tar.gz
lumina-330fb992045599284093d6fa2180b4ca97091ccb.tar.bz2
lumina-330fb992045599284093d6fa2180b4ca97091ccb.zip
Ensure that on session-start the audio volume is reset back to the previously-used value before starting the login chimes.
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp3
1 files changed, 3 insertions, 0 deletions
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()){
bgstack15