bug fixed
This commit is contained in:
parent
3daf42c970
commit
ff46b25868
1 changed files with 4 additions and 4 deletions
|
|
@ -10,10 +10,10 @@ class SchedulerLinux extends SchedulerManager {
|
|||
String get exePath {
|
||||
//home/linuxbrew/.linuxbrew/Cellar/oto/0.0.273/bin/oto
|
||||
var exe = Platform.resolvedExecutable;
|
||||
if (exe.contains('.linuxbrew')) {
|
||||
var rootPath = 'home/linuxbrew/.linuxbrew/Cellar/oto/0.0.273/bin/oto';
|
||||
var index = rootPath.indexOf('.linuxbrew');
|
||||
rootPath = rootPath.substring(0, index);
|
||||
final key = '.linuxbrew';
|
||||
if (exe.contains(key)) {
|
||||
var index = exe.indexOf('.linuxbrew');
|
||||
var rootPath = exe.substring(0, index);
|
||||
exe = '$rootPath.linuxbrew/bin/${path.basenameWithoutExtension(exe)}';
|
||||
}
|
||||
return exe;
|
||||
|
|
|
|||
Loading…
Reference in a new issue