Seafile: Use own Apple Touch Icon

Warning: This page is a part of an archive now and will be removed in the future.

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.
About the Author
Ich bin Webentwickler in Stuttgart und administriere Server seit vielen Jahren. In diesem Blog erstelle ich hauptsächlich Tutorials für andere Webentwickler, Webdesigner und Serveradministratoren.
-------------------------------------------------------------------------------------------------------------------------------------
I’m a web developer in Stuttgart, Germany, and server administrator since many years. This blog mainly contains a tutorial set for other web developer, web designer and server administrators.

646 times read

Comments 0

There are not any items at the moment.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.