Changeset 73f107f


Ignore:
Timestamp:
03/05/14 09:29:16 (8 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
25ff000
Parents:
0debaa77
Message:

Add support for setting the default pulseaudio sink when we change default audio
devices

Location:
src-qt4/pc-soundconfig
Files:
1 deleted
1 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(); 
Note: See TracChangeset for help on using the changeset viewer.