Changeset 47289e4


Ignore:
Timestamp:
02/27/15 13:31:50 (5 days ago)
Author:
Ken Moore <ken@…>
Branches:
master
Children:
cb1b057, 9e9b069
Parents:
dec2f47
Message:

Update the system updater tray to run the tor mode check through pc-sysconfig (needs root privileges to get an accurate check result).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/pc-systemupdatertray/SysStatus.cpp

    rceec736 r47289e4  
    5858 
    5959bool SysStatus::InTorMode(){ 
    60   return (QProcess::execute("enable-tor-mode -c") == 0); // 0 = in TOR mode, 1 is not 
     60  return ("TRUE" == pcbsd::Utils::runShellCommand("pc-sysconfig usingtormode").join("").simplified() ); 
    6161} 
     62 
    6263bool SysStatus::changedFrom(SysStatus old){ 
    6364  //See if the current status is different from an old status 
Note: See TracChangeset for help on using the changeset viewer.