Add Linux support

This commit is contained in:
2023-11-26 15:12:51 +08:00
parent 3dada54d8c
commit 9810214903
5 changed files with 29 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ class LogsFile {
IOSink? _cached;
Future<void> init() async {
if (_cachedLogDirectory != null) return;
if (isWindows) {
if (isWindows || isLinux) {
try {
final p = await platformPath.getCurrentExe();
if (p != null) {