mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-09 11:29:57 +00:00
Introduce a command line option to pass sleep password.
And fix return code for "launching" system app.
This commit is contained in:
@@ -61,6 +61,8 @@ static char spUuid[BUFSIZE];
|
||||
extern bool wakeOnWifiLan;
|
||||
static int gDialPort;
|
||||
|
||||
char spSleepPassword[BUFSIZE];
|
||||
|
||||
static char *spAppYouTube = "chrome";
|
||||
static char *spAppYouTubeMatch = "chrome.*google-chrome-dial";
|
||||
static char *spAppYouTubeExecutable = "/opt/google/chrome/google-chrome";
|
||||
@@ -325,6 +327,9 @@ static void processOption( int index, char * pOption )
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
setValue( pOption, spSleepPassword );
|
||||
break;
|
||||
default:
|
||||
// Should not get here
|
||||
fprintf( stderr, "Option %d not valid\n", index);
|
||||
|
||||
Reference in New Issue
Block a user