<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: daanchuk</title>
    <description>The latest articles on DEV Community by daanchuk (@daanchuk).</description>
    <link>https://dev.to/daanchuk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F228392%2F766476a9-6a71-4e2c-bb9f-6ca40cd7a647.jpeg</url>
      <title>DEV Community: daanchuk</title>
      <link>https://dev.to/daanchuk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daanchuk"/>
    <language>en</language>
    <item>
      <title>How to Create a Tray-Only Tauri App</title>
      <dc:creator>daanchuk</dc:creator>
      <pubDate>Sat, 13 May 2023 19:56:38 +0000</pubDate>
      <link>https://dev.to/daanchuk/how-to-create-a-tray-only-tauri-app-2ej9</link>
      <guid>https://dev.to/daanchuk/how-to-create-a-tray-only-tauri-app-2ej9</guid>
      <description>&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Start with a Tauri app boilerplate. You can use the following command to create one: &lt;code&gt;npm create tauri-app@latest&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add a tray bar icon to your Tauri app:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the &lt;code&gt;tauri.conf.json&lt;/code&gt; file.&lt;/li&gt;
&lt;li&gt;Locate the &lt;code&gt;"tauri"&lt;/code&gt; property.&lt;/li&gt;
&lt;li&gt;Inside it, add a &lt;code&gt;"systemTray"&lt;/code&gt; object, as shown below:
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"tauri"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"systemTray"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
         &lt;/span&gt;&lt;span class="nl"&gt;"iconPath"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"icons/icon.png"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
         &lt;/span&gt;&lt;span class="nl"&gt;"iconAsTemplate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
   &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ensure that you provide the correct path to your tray icon image file.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Configure Tauri to not display any window:

&lt;ul&gt;
&lt;li&gt;In the same &lt;code&gt;tauri.conf.json&lt;/code&gt; file, find the &lt;code&gt;"build"&lt;/code&gt; property.&lt;/li&gt;
&lt;li&gt;Inside it, locate the &lt;code&gt;"windows"&lt;/code&gt; property and set it to an empty array, like this:
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"windows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
   &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By following these steps, you will be able to create a tray-only Tauri app with the specified tray bar icon and without any visible windows. Feel free to adjust the configuration based on your specific requirements.&lt;/p&gt;

&lt;p&gt;Remember to run the necessary commands and build the app according to the Tauri documentation after making these changes.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>ui</category>
      <category>programming</category>
    </item>
    <item>
      <title>Fix appwrite CORS issue</title>
      <dc:creator>daanchuk</dc:creator>
      <pubDate>Sun, 01 Aug 2021 14:30:13 +0000</pubDate>
      <link>https://dev.to/daanchuk/fix-appwrite-cors-issue-4448</link>
      <guid>https://dev.to/daanchuk/fix-appwrite-cors-issue-4448</guid>
      <description>&lt;p&gt;Getting CORS Issues? You might be tempted to &lt;a href="https://github.com/appwrite/appwrite/issues/1082"&gt;this issue&lt;/a&gt;, but it's actually the wrong way.&lt;/p&gt;

&lt;p&gt;The correct way is to actually go to your appwrite console -&amp;gt; platforms -&amp;gt; add.&lt;/p&gt;

</description>
      <category>cors</category>
      <category>appwrite</category>
    </item>
    <item>
      <title>sync google contacts and calendar to filesystem</title>
      <dc:creator>daanchuk</dc:creator>
      <pubDate>Thu, 17 Jun 2021 10:15:06 +0000</pubDate>
      <link>https://dev.to/daanchuk/sync-google-contacts-and-calendar-to-filesystem-4a93</link>
      <guid>https://dev.to/daanchuk/sync-google-contacts-and-calendar-to-filesystem-4a93</guid>
      <description>&lt;p&gt;I just found this incredible piece of software called &lt;code&gt;vdirsync&lt;/code&gt; where they have their own implementation for filesystem based carddav and caldav (contacts/calendar formats) that can, luckily, be read via another program &lt;code&gt;khald&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Get relevant "sync urls" for each service, &lt;a href="https://developers.google.com/contacts/carddav"&gt;contacts (carddav)&lt;/a&gt;, &lt;a href="https://developers.google.com/calendar/caldav/v2/guide"&gt;calendar (caldav)&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>sync</category>
      <category>google</category>
      <category>calendar</category>
      <category>contacts</category>
    </item>
  </channel>
</rss>
