← Back to team overview

syncany-team team mailing list archive

[Bug 793955] Re: Daemonize Syncany Core & Externalize GUI

 

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.




** Patch added: "Headless Patch"
   https://bugs.launchpad.net/syncany/+bug/793955/+attachment/2177839/+files/syncany-headleass-AlR-v1.diff.patch

-- 
You received this bug notification because you are a member of Syncany
Team, which is subscribed to Syncany.
https://bugs.launchpad.net/bugs/793955

Title:
  Daemonize Syncany Core & Externalize GUI

Status in Syncany:
  New

Bug description:
  The Syncany GUI is currently a core part of Syncany. Launching and
  controlling Syncany without a GUI is not possible. In order to
  interact with Syncany by other programs, it might be useful to
  externalize the GUI in a separate application.

  This bug is meant to discuss details for this blueprint:
  https://blueprints.launchpad.net/syncany/+spec/daemonize-core

  What do you guys think of that? How could this be realized? Any
  volunteers?

To manage notifications about this bug go to:
https://bugs.launchpad.net/syncany/+bug/793955/+subscriptions