Comment 3 for bug 793955

Revision history for this message
Pom Albisser (roman-albisser) wrote :

Hello everybody,

this is really true. I'd like to run syncany on my server without a screen.
To make this work, I changed some parts in the code.

Basically i added a new configuration parameter "headless".

Sample Config:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<syncany>
 <username>albisser</username> <!-- optional -->
 <machinename>ch1w47039</machinename> <!-- optional -->
 <userimage>system</userimage> <!-- optional -->
 <service-enabled>true</service-enabled> <!-- optional -->
 <autostart>true</autostart> <!-- optional -->
 <notifications>true</notifications> <!-- optional -->
 <headless>true</headless> <!-- optional -->
 ...
</syncany>

If headless is "true", the GUI will not be initialized and calls to the tray or the configuration wizard are omitted.

A patch is attached.

Of course, this is just a dirty hack. I think Isaacs Idea to implement an Server API and a GUI Client in to separat applications is the right way. I also attached a diagram, how the new architecture might could look.