File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -394,7 +394,8 @@ SwitchToPlayerModeCommand::SwitchToPlayerModeCommand() :
394
394
Command(" Switch To Player Mode" , " Restart FPP in Player Mode." ) {
395
395
}
396
396
std::unique_ptr<Command::Result> SwitchToPlayerModeCommand::run (const std::vector<std::string>& args) {
397
- system (" /opt/fpp/scripts/common setSetting fppMode player" );
397
+ std::string cmd (getFPPDDir (" /scripts/common setSetting fppMode player" ));
398
+ system (cmd.c_str ());
398
399
ShutdownFPPD (true );
399
400
return std::make_unique<Command::Result>(" Switch To Player Mode" );
400
401
}
@@ -403,7 +404,8 @@ SwitchToRemoteModeCommand::SwitchToRemoteModeCommand() :
403
404
Command(" Switch To Remote Mode" , " Restart FPP in Remote Mode." ) {
404
405
}
405
406
std::unique_ptr<Command::Result> SwitchToRemoteModeCommand::run (const std::vector<std::string>& args) {
406
- system (" /opt/fpp/scripts/common setSetting fppMode remote" );
407
+ std::string cmd (getFPPDDir (" /scripts/common setSetting fppMode remote" ));
408
+ system (cmd.c_str ());
407
409
ShutdownFPPD (true );
408
410
return std::make_unique<Command::Result>(" Switch To Remote Mode" );
409
411
}
You can’t perform that action at this time.
0 commit comments