mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 17:51:29 +03:00
Use ykman-rpc from Flutter.
This commit is contained in:
parent
8362cc2093
commit
bfbfc51a00
@ -28,7 +28,7 @@ Future<List<Override>> initializeAndGetOverrides() async {
|
||||
// Either use the _YKMAN_EXE environment variable, or look relative to executable.
|
||||
var exe = Platform.environment['_YKMAN_PATH'];
|
||||
if (exe?.isEmpty ?? true) {
|
||||
var relativePath = 'ykman/ykman';
|
||||
var relativePath = 'ykman-rpc/ykman-rpc';
|
||||
if (Platform.isMacOS) {
|
||||
relativePath = '../Resources/' + relativePath;
|
||||
} else if (Platform.isWindows) {
|
||||
@ -41,7 +41,7 @@ Future<List<Override>> initializeAndGetOverrides() async {
|
||||
|
||||
log.info('Starting subprocess: $exe');
|
||||
var rpc = await RpcSession.launch(exe!);
|
||||
log.info('ykman process started', exe);
|
||||
log.info('ykman-rpc process started', exe);
|
||||
rpc.setLogLevel(Logger.root.level);
|
||||
|
||||
return [
|
||||
|
@ -78,8 +78,7 @@ class RpcSession {
|
||||
}
|
||||
|
||||
static Future<RpcSession> launch(String executable) async {
|
||||
var process =
|
||||
await Process.start(executable, [], environment: {'_YKMAN_RPC': '1'});
|
||||
var process = await Process.start(executable, []);
|
||||
return RpcSession(process);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user