Open claude-cp opened 4 years ago
That exactly what I wanted to suggest. This way you could automate some starting/stopping using Tasker, which can access the common app shortcuts.
I would love to see this feature, too. Completely killing and starting the app itself using Tasker works somehow, but will bring Syncthing to the foreground when starting.
I got the problem that Syncthing stops itself (?) after some time when inactive (i.e. when "only run while charging" is active and not plugged in) and won't activate again when plugged in again. Using Tasker I could work around this problem, but I need a shortcut to trigger a start in the background :+1:
// Update Thanks for the (already deleted?) note here, there is already a solution for triggering Syncthing from Tasker available: Broadcast Intents! Nevertheless a simple shortcut would be nice.
However, Tasker for one, is not open source. I'd rather keep my ecosystem open source and this still means that Syncthing having its own shortcut is the way in this regard.
Before suggesting perhaps an open source alternative to Tasker, I also want to point out: I don't think installing another app for this simple thing is the way, in general. A clean and minimal ecosystem is much preferred, rather than a bloated one, with apps depending on apps depending on apps. I know it's 2020, but I hope at least the open source community does not lose its way into the software ecosystem.
Simplicity, robustness and self-reliance are virtues in themselves, and something I value highly in software especially. Even more so in FOSS.
For the same reason (and more) I have set syncthing to only be active while charging, and while at my home-wifi. The only problem in this setting is that once I enable syncthing-gui while not charging, it asks me to alter the settings to allow it to run. Here I would prefer the option to overrule the setting for now until I close the interface.
Correct me if I'm wrong, but wouldn't a "Start/Stop Syncthing" feature rather have to pause/unpause all folders instead of turning off Syncthing itself ? Even in the Web UI you can't "Stop Syncthing" but there is a "Pause All" button.
Yes, but back in the day, there was no pause feature, so pausing was done by starting and stoppiing the application.
Correct me if I'm wrong, but wouldn't a "Start/Stop Syncthing" feature rather have to pause/unpause all folders instead of turning off Syncthing itself ? Even in the Web UI you can't "Stop Syncthing" but there is a "Pause All" button.
I'm not sure but I do think/hope 'pause' is stop/start and reboot safe: If you put a dedicated folder-sync in pause and stop/start syncthing or reboot your machine, the result after syncthing is started once again, the directory is still in pause.
By shortcut I mean an icon that can be created when long pressing the app (as in many other apps). Most of the times I do not want the app to run continously.. all day, making 30-40 requests per minute. In fact the opposite is true - I intend to run it by choice when it is necessary to.
It would be great if a simple shortcut can be added to toggle syncthing on / off.
Such an example can be seen in Drowser which is an open source android app so the code can be checked there. (A quick search within the code there for "DROWSE_NOW_ACTION" shows the relevant code)
90% of the times I am using that app from the shortcut as I do not need to use its interface more than necessary. This can be the case with Syncthing too. IIRC, in Drowser this ability came with a sticky notification - I turned notifications off and kept the shortcut only. Unsure if that notification is a must in Android for this type of functionality, but I'd be surprised if it was a must.
I suspect their (Drowser) approach might turn out not too difficult to replicate here (?) - It looks to me like they used the most basic and straightforward way to enable such a feature; Hence I brought Drowser up and those pointers that I believe may turn out to be helpful.
Although, in this case for Syncthing, it would be amazing if the resulting icon/widget/button shortcut could have toggle-like visuals - so as to distinguish Syncthing's current state (on or off).
Version Information