You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I love how well Syncthing works so far. This is a feature request, that should (?) be fairly simple to integrate:
It would be cool if Syncthing would look for config files in the directory it's running from first and then ideally accept relative paths (not sure if that requires any modification), so that you could put it on a thumb-drive and run it from any computer, thereby updating a shared folder, or creating a backup of said drive. This is working nicely in my head. Don't know if there are any issues to be expected though...
I think this could be accomplished with a batch/shell file that starts syncthing with the thumbdrive as current directory and with -home syncthing-config or something. The path given to -home is taken as relative to the current directory unless it's an absolute path.
I'm not sure what doubleclicking a .bat file on Windows results in, but I'd hope it sets the current directory to the directory the batch file is in.
Just for information.
I use this bat file for portable start in Windows:
@echo off
%~d0
cd "%~d0%~p0"
IF %ERRORLEVEL%==0 GOTO PATH_IS_OK
exit
:PATH_IS_OK
rem set AppData=D:\Data\syncthing\
set AppData=%~d0%~p0
set LocalAppData=%AppData%
start "syncthing" /B /LOW syncthing.exe
Activity
calmh commentedon Jul 12, 2014
I think this could be accomplished with a batch/shell file that starts syncthing with the thumbdrive as current directory and with
-home syncthing-configor something. The path given to-homeis taken as relative to the current directory unless it's an absolute path.I'm not sure what doubleclicking a .bat file on Windows results in, but I'd hope it sets the current directory to the directory the batch file is in.
niphlod commentedon Jul 22, 2014
in any case, in a batch file
%~dp0
holds the current directory of the bat launched, so at least that part should be covered...
calmh commentedon Jul 23, 2014
Sounds like all the required mechanisms are in place, then.
heX16 commentedon Jul 15, 2015
Just for information.
I use this bat file for portable start in Windows:
AceXare commentedon Dec 10, 2015
I used this on my USB Stick wherever i go, but on the work I am using Linux.
Is it possible for Linux to run portable, too?
rumpelsepp commentedon Dec 10, 2015
You can just start the binary. But please switch over to the forum, there's a lot of helpful people over there. :)
https://forum.syncthing.net/c/support
AceXare commentedon Dec 10, 2015
okay thank you :)