libLumina/LuminaOS-FreeBSD.cpp
bool LOS::userHasShutdownAccess(){
  //User needs to be a part of the operator group to be able to run the shutdown command
  QStringList groups = LUtils::getCmdOutput("id -Gn").join(" ").split(" ");
  return groups.contains("operator"); //not implemented yet
}
//Check for user system permission (shutdown/restart)
Check for user system permission (shutdown/restart)
Check for user system permission ( shutdown / restart )
bool LOS::userHasShutdownAccess(){
  QStringList groups = LUtils::getCmdOutput("id -Gn").join(" ").split(" ");
  return groups.contains("operator"); 
}
bool LOS :: userHasShutdownAccess ( ) { QStringList groups = LUtils :: getCmdOutput ( " " ) . join ( " " ) . split ( " " ) ; return groups . contains ( " " ) ; }
Check for user system permission (shutdown/restart)
Check for user system permission ( shutdown / restart )
//User needs to be a part of the operator group to be able to run the shutdown command //not implemented yet