Seafile: Use own Apple Touch Icon

Seafile is a nice cloud application, which is written in Python to have less disadvantages than ownCloud (PHP) for instance. In this article I will show you how to modify Seafile to use an own Apple Touch Icon. By default Seafile doesn’t use anyone.

If you didn’t do any modification yet, for example change some CSS, you have to create a particular directory. Create it under the path <seafile-install-path>/seahub-data/custom, go to cd <seafile-install-path>/seafile-server-latest/seahub/media and create a symlink by using the following command: ln -s ../../../seahub-data/custom custom
Don’t be worried, the update routine of Seafile recognizes this symlink and creates it again during the update.

There are now settings for the Apple Touch Icon so you have to modify the template. At first create the subdirectory templates in the first created directory under <seafile-install-path>/seahub-data/custom. Switch inside this created directory and copy the original main template to it: cp ../../../seafile-server-latest/seahub/seahub/templates/base_for_backbone.html .

Prior to v5.1.0, the file home_base.html has to be copied instead.

Now open the template and add the following code line before the closing </head>:
<link rel="apple-touch-icon" href="{{ MEDIA_URL }}custom/apple-touch-icon.png" />
Save the icon itself (apple-touch-icon.png) inside the created directory under <seafile-install-path>/seahub-data/custom.

Now you’re finished. The Apple Touch Icon should be used now, for instance if you place it on the homescreen on the iPhone.

Leave a Reply

Your email address will not be published. Required fields are marked *