From 5b7cb046fa60acebda8787814f694c2b3b116d92 Mon Sep 17 00:00:00 2001 From: TheLastGimbus Date: Sun, 24 Sep 2023 04:21:23 +0200 Subject: [PATCH] here you go synology people --- bin/gpth.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/gpth.dart b/bin/gpth.dart index 8e471791..5eac20fb 100644 --- a/bin/gpth.dart +++ b/bin/gpth.dart @@ -93,7 +93,15 @@ void main(List arguments) async { // ask for everything // @Deprecated('Interactive unzipping is suspended for now!') // final zips = await interactive.getZips(); - final inDir = await interactive.getInputDir(); + late Directory inDir; + try { + inDir = await interactive.getInputDir(); + } catch (e) { + print("Hmm, interactive selecting input dir crashed... \n" + "it looks like you're running in headless/on Synology/NAS...\n" + "If so, you have to use cli options - run 'gpth --help' to see them"); + exit(69); + } print(''); final out = await interactive.getOutput(); print('');