<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to trigger a folder sync programmatically? in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676317#M3306</link>
    <description>&lt;P&gt;I have a Daemon on my local device (mac) that processes some files and writes the output to a dropbox folder. It successfully runs and writes the data to dropbox, but the dropbox folder does not synchronize until a user is signed into the device. I want the dropbox folder to synchronize even when a user is not specifically signed into the device. Is there a way to trigger this behavior as the root user? I understand that the dropbox api has some ability to manipulate files, I want to know if that is useable route before I dive too deep into it.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 21:10:07 GMT</pubDate>
    <dc:creator>rschuber</dc:creator>
    <dc:date>2023-04-12T21:10:07Z</dc:date>
    <item>
      <title>how to trigger a folder sync programmatically?</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676317#M3306</link>
      <description>&lt;P&gt;I have a Daemon on my local device (mac) that processes some files and writes the output to a dropbox folder. It successfully runs and writes the data to dropbox, but the dropbox folder does not synchronize until a user is signed into the device. I want the dropbox folder to synchronize even when a user is not specifically signed into the device. Is there a way to trigger this behavior as the root user? I understand that the dropbox api has some ability to manipulate files, I want to know if that is useable route before I dive too deep into it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:10:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676317#M3306</guid>
      <dc:creator>rschuber</dc:creator>
      <dc:date>2023-04-12T21:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger a folder sync programmatically?</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676324#M3307</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1675260"&gt;@rschuber&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., but the dropbox folder does not synchronize until a user is signed into the device. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1675260"&gt;@rschuber&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, it's so because official Dropbox application works as a regular application (or user service), not as a system service,&amp;nbsp;🤦 unfortunately. So the Dropbox application needs running user session (i.e. signed in user). That's it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1675260"&gt;@rschuber&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... Is there a way to trigger this behavior as the root user? ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you mean to trigger user session using system service (running in root context), most probably you can, but such "exercise" is NOT something trivial and it's NOT Dropbox SUPPORTED. You can try on your responsibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1675260"&gt;@rschuber&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have a Daemon on my local device (mac) that processes some files and writes the output to a dropbox folder. It successfully runs and writes the data to dropbox, ... I understand that the dropbox api has some ability to manipulate files, I want to know if that is useable route before I dive too deep into it.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, you can use that "route". &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Seems, you have implemented you sync algorithm already and since it works properly, you can upload the files direct to their place on Dropbox server instead of copy them to local Dropbox folder. In such a way you don't need running official Dropbox application actually - your application becomes Dropbox application (in the part related to upload). You need to &lt;A title="App console" href="https://www.dropbox.com/developers/apps" target="_blank" rel="noopener"&gt;register application on Dropbox site&lt;/A&gt; (create new app there) and implement the uploading. Take a look &lt;A title="API &amp;amp; SDKs &amp;amp; Pre-built components" href="https://www.dropbox.com/developers/documentation" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 21:35:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676324#M3307</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-04-12T21:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger a folder sync programmatically?</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676445#M3308</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1675260"&gt;@rschuber&lt;/a&gt;&amp;nbsp;Здравко is correct; Dropbox doesn't officially support a way of programmatically controlling the desktop client like that. You can use &lt;A href="https://www.dropbox.com/developers" target="_blank"&gt;the Dropbox API&lt;/A&gt; instead though, which communicates directly with the Dropbox servers instead of the local Dropbox client. The &lt;A href="https://www.dropbox.com/developers/reference/getting-started" target="_blank"&gt;Getting Started&lt;/A&gt; and &lt;A href="https://developers.dropbox.com/dbx-file-access-guide" target="_blank"&gt;File Access&lt;/A&gt; guides may be helpful&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 12:15:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-trigger-a-folder-sync-programmatically/m-p/676445#M3308</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-04-13T12:15:09Z</dc:date>
    </item>
  </channel>
</rss>

