bug fixed

This commit is contained in:
Toki 2025-01-01 10:47:18 +09:00
parent 3daf42c970
commit ff46b25868

View file

@ -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;