Changes in / [f5ad808:68b1db6]


Ignore:
Location:
src-qt4
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-soundconfig/snddialog.cpp

    r1620346 r73f107f  
    7979  tmp.setNum(comboSound->currentIndex()); 
    8080  system("sysctl hw.snd.default_unit=" + tmp.toLatin1()); 
     81 
     82  // Try to set the default pulseaudio sink as well 
     83  QString username = QString::fromLocal8Bit(getenv("LOGNAME")); 
     84  system("su " + username.toLatin1() + " -c \"pactl set-default-sink " + tmp.toLatin1() + "\""); 
     85 
    8186  pcbsd::Utils::setConfFileValue( "/etc/sysctl.conf", "hw.snd.default_unit=", "hw.snd.default_unit=" + tmp ); 
    8287  refreshDevices(); 
  • src-qt4/xtrafiles/local/share/pcbsd/scripts/sound-dev-changed.sh

    r1620346 r25ff000  
    8282   sysctl hw.snd.default_unit=$mixerNum 
    8383 
     84   # Look for pulseaudio daemons to change audio sinks on 
     85   for user in `ps -auwwx | grep 'pulseaudio --start' | grep -v 'grep' | awk '{print $1}'` 
     86   do 
     87      su $user -c "pactl set-default-sink $mixerNum" 
     88   done 
     89 
    8490} 
    8591 
Note: See TracChangeset for help on using the changeset viewer.