<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ical on</title><link>http://salopst.yearl.us/tags/ical/</link><description>Recent content in Ical on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Wed, 17 Feb 2021 13:00:00 +0000</lastBuildDate><atom:link href="http://salopst.yearl.us/tags/ical/index.xml" rel="self" type="application/rss+xml"/><item><title>Make iCloud nativefier app for iCal on Linux</title><link>http://salopst.yearl.us/make-icloud-nativefier-app-a-for-ical-on-linux/</link><pubDate>Wed, 17 Feb 2021 13:00:00 +0000</pubDate><guid>http://salopst.yearl.us/make-icloud-nativefier-app-a-for-ical-on-linux/</guid><description>&lt;h3 id="nativefier"&gt;&lt;a href="https://github.com/nativefier/nativefier"&gt;Nativefier&lt;/a&gt;&lt;/h3&gt;&#10;&lt;p&gt;&amp;ldquo;&amp;hellip;is a command-line tool to easily create a desktop app for any web site with minimal configuration. Apps are wrapped by Electron (which uses Chromium under the hood) in an OS executable (.app, .exe, etc) for use on Windows, macOS and Linux.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;&amp;lsquo;Tis a beautiful app to be sure.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mkdir -p ~/tmp/icloud-nativefier-build-dir&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ../tmp/icloud-nativefier-build-dir&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# get nice icon&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;wget https://i.imgur.com/m0abT4k.png -O icon.png&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nativefier -p linux -a x64 -i icon.png --disable-context-menu --disable-dev-tools --single-instance https://www.icloud.com/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# App built to /home/yearluk/tmp/icloud-nativefier-build-dir/iCloud-linux-x64&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mv ~/tmp/icloud-nativefier-build-dir/iCloud-linux-x64 ~/bin/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# add to $XDG_CONFIG_HOME/.shell_aliases.sh ...&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# alias icloud=&amp;#34;$HOME/bin/iCloud-linux-x64/iCloud&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd ~/bin/iCloud-linux-x64&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# make the desktop file.... put in ~/.local/share/applications ... or /usr/share/applications/&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vscodium icloud.desktop&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;chmod +x ./icloud.desktop&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="and-then-make-a-desktop-file"&gt;And then make a desktop file:&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;create &lt;code&gt;~/.local/share/applications/yearluk.nativifier.icloud.desktop&lt;/code&gt; :&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Desktop Entry]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Encoding=UTF-8&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Version=1.0&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Type=Application&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Terminal=false&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Exec=/home/yearluk/bin/iCloud-linux-x64/iCloud&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Name=iCloud (nativefier)&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Icon=/home/yearluk/bin/iCloud-linux-x64/resources/app/icon.png&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ sudo cp ~/.local/share/applications/yearluk.nativifier.icloud.desktop /usr/share/applications&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Run a desktop file from a terminal. If gtk3 is installed, run: &lt;code&gt;gtk-launch application.desktop&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>