GithubHelp home page GithubHelp logo

jastbytes / syncthingtray Goto Github PK

View Code? Open in Web Editor NEW
150.0 150.0 24.0 795 KB

Syncthing wrapper for Windows. Includes a small interface to configure start on boot and puts syncthing into tray instead of the console window.

License: GNU General Public License v2.0

C# 99.49% Batchfile 0.51%

syncthingtray's People

Contributors

flamedmg avatar jastbytes avatar marclaporte avatar marioliebisch avatar opuslux avatar quantum5 avatar stefh avatar uvbeenzaned avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

syncthingtray's Issues

SyncthingTray only starts after Syncthing's configuration has been created

When I compiled the master branch (44b45e6), this error happens on startup:

The problem seems to be in SyncthingConfig.cs, where the following line fails to handle the null case for ConfigPath:

Watcher = new FileSystemWatcher(Path.GetDirectoryName(ConfigPath))

This goes away immediately after downloading and running syncthing.exe manually.

Running the project results into fatal error due to empty/null ConfigPath

I've forked latest code and when running the app using F5, I get an error in SyncthingConfig.cs that ConfigPath is null in this code:

static SyncthingConfig()
{
    Watcher = new FileSystemWatcher(Path.GetDirectoryName(ConfigPath))
    . . . 

Another question, did you use a generator to create the SyncthingConfig.cs file ?
And why not just store these settings in the app.config ?

taskbar ballon messages... too many

Best syncthing addon by the way. But next to 'Start on boot' and 'Minimize on Start', there should be one for 'disable taskbar messages'. They are too many, when you come up from suspend, they keep appearing for minutes, others machines go off and you are alerted too.

I know you can hide taskbar messages, but the thing is that windows only let you do it by hiding also the icon of syncthingtray. I want the icon, but not keep receiving hundreds of ballons each day.

Just a suggestion. Thanks again for your nice addon. (I hate the black intrusive msdos window of the main program), thanks to you I keep using syncthing.

Support Windows XP?

I know the OS is no longer supported by Microsoft, but could it be possible to make this SyncthingTray run on it?

problems starting tray

hi there!
got fllowing while starting tray:

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.Configuration.ConfigurationErrorsException: Das Konfigurationssystem konnte nicht initialisiert werden. ---> System.Configuration.ConfigurationErrorsException: Das Stammelement ist nicht vorhanden. (C:\Users\Matador\AppData\Local\SyncthingTray\SyncthingTray.exe_Url_gk2ih05o2qnv2x1w1vdvops1lkjnqogm\0.3.1.32666\user.config) ---> System.Xml.XmlException: Das Stammelement ist nicht vorhanden.
bei System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
bei System.Xml.XmlTextReaderImpl.ParseDocumentContent()
bei System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
bei System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
bei System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
bei System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)
bei System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)
bei System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
bei System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
bei System.Configuration.ConfigurationManager.GetSection(String sectionName)
bei System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
bei System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
bei System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
bei System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
bei System.Configuration.SettingsBase.get_Item(String propertyName)
bei System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
bei System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
bei SyncthingTray.SyncthingTray.SyncthingTray_Load(Object sender, EventArgs e) in f:\Users\Jan\GIT\SyncthingTray\SyncthingTray\SyncthingTray.cs:Zeile 185.
bei System.Windows.Forms.Form.OnLoad(EventArgs e)
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl()
bei System.Windows.Forms.Control.WmShowWindow(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.Form.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.

SyncthingTray
Assembly-Version: 0.3.1.32666.
Win32-Version: 0.3.1.*.

CodeBase: file:///D:/Programme/syncthing/SyncthingTray.exe.

System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34251 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.

System.Drawing
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.

System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34238 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.

System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.

System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34234 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.

System.xml.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Xml.resources.dll.

System.Configuration.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration.resources/v4.0_4.0.0.0_de_b03f5f7f11d50a3a/System.Configuration.resources.dll.

System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.

mscorlib.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.34209 built by: FX452RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

Wenn das JIT-Debuggen aktiviert ist, werden alle Ausnahmefehler an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

Double click to open web interface

Please make is possible to open the web interface with double click on tray icon
single click on tray icon shows/hides tray interface

Start on Boot checkbox not sticky

Love this application!

I configured my system (Win 7 64bit) to launch ST Tray at boot-up using the Task Scheduler and a Batch file. Yes, it's a little unusual, but I auto-launch 1 other executable before I open Syncthing.

I unchecked the "Start on Boot" box - but after every boot the box is checked again; causing me to have to manually un-check it. Is this a bug, or is there some way I can make this setting sticky? Thank you.

Disable Autostart browser doesn't work

Even if I deselect autostart browser at the next start of SyncthingTray the option will be selected and the browser will be opened.

As workaround I manually added in the conf file:
<setting name="startBrowser" serializeAs="String">
<value>False</value>
</setting>

New release / appveyor nightly builds?

Hi, seeing alot has changed in the code since the last release, would it make sense to cut a new release?

Or, please consider hooking up appveyor for automatic builds of each commit

SyncthingTray too chatty?

Hi, I noticed that the application notifies very frequently, printing Syncthing log. Would it make sense to provide a setting to tune the frequency of notifications, or maybe their verbosity level (dunno, perhaps something like "Only notify if log level is > X").
Barring this, perhaps just a setting to turn notifications off?

Tray Icon looks fuzzy

I know nothing about graphics but the system tray icon looks fuzzy on my machine.

screenshot 193

Thanks for working on this project though.

Syncthingtray crashes every few days

Once or twice each week, Syncthingtray crashes. Interestingly, when it crashes on one computer, it crashes on the other computer on which it's installed on my LAN.

I'm using SyncthingTray 0.3.1 and Syncthing v0.11.21, Windows (64 bit).

Here are the details:

Faulting application name: SyncthingTray.exe, version: 0.3.1.0, time stamp: 0x53e3b2a5
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x6c8
Faulting application start time: 0x01d0d9bbeb120b7b
Faulting application path: F:\syncthing\SyncthingTray.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 417519a8-499d-11e5-82c3-54271e232b32
Faulting package full name: 
Faulting package-relative application ID: 

First computer: Windows 8.1 64 bit.
Second computer: Windows 10 Insider Preview build th2_release 10525 (but prior to that, Windows XP SP3, on which Syncthingtray also crashed regularly)

Just before the application error above, I get a .NET runtime error:

Application: SyncthingTray.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
   at System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
   at System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
   at SyncthingTray.SyncthingTray.ActiveProcess_OutputDataReceived(System.Object, System.Diagnostics.DataReceivedEventArgs)
   at System.Diagnostics.Process.OutputReadNotifyUser(System.String)
   at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
   at System.Diagnostics.AsyncStreamReader.ReadBuffer(System.IAsyncResult)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.IO.Stream+ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(System.Threading.Tasks.Task)
   at System.Threading.Tasks.Task.FinishContinuations()
   at System.Threading.Tasks.Task.Finish(Boolean)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

How do I use this?

Sorry to be asking a dumb question here, but how do I use/install this on Windows? A more comprehensive readme file would be appreciated! Thanks.

SyncthingTray crashes when syncthing restarts

As the title says, STT just crashes when the syncthing binary exits or restarts itself. Reproducible on WinXP 32bit, Win 8.1 64bit. I don't know if this is already done, but starting with ST_NORESTART=1 should also help as sometimes multiple copies of syncthing.exe are running when using SyncthingTray.

Detect syncthing installation

It would be great if SyncthingTray detects an existing Syncthing installation

  • if C:\Program Files\Syncthing\syncthing.exe exists set path in tray config
  • if %LOCALAPPDATA%\Syncthing\config.xml exists use it for tray config

Home Parameter

Is it possible to set a parameter by starting synchthing?

E.g. add an extra field in the gui, where I can put in "-home= c:\whatever\logs".

Is there a workaround? Creating a link with the parameter (syncthing.lnk) and invoke it, does not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.