Skip to content

Mac OSX App (wrapper)

Liting Chen edited this page Jan 8, 2021 · 4 revisions

This article is not about how to install Zim on mac.
However, I think the easiest way to install Zim is using brew: brew install zim

This is just a wrapper app for Zim so that you can keep it in the launcher and open it as a native Mac OSX app.

It is basically 3 files:

$> find /Applications/Zim.app/ -type f
/Applications/Zim.app/Contents/MacOS/Zim           # sh script
/Applications/Zim.app/Contents/Resources/zim.icns  # icon
/Applications/Zim.app/Contents/Info.plist          # property list (app configurations)
$> cat ./Zim.app/Contents/MacOS/Zim
#!/bin/sh
#Script written for a Zim Mac app by Izhak Jakov
#
##########################################
export LANG=en_CA.UTF-8
exec /usr/local/bin/zim;

Make sure the file is executable by chmod +x Zim

You might want to modify the local environment.
To do this change the value of LANG (modify: export LANG=en_CA.UTF-8)

$> cat ./Zim.app/Contents/Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleExecutable</key>
    <string>Zim</string>
    <key>CFBundleIconFile</key>
    <string>zim.icns</string>
</dict>
</plist>

Download the wrapper app Zim.zip

After you downloaded or created the app, drag it app to /Applications (In finder hold: ⌘ + ⇧ + G then type /Applications in the opened window)

Clone this wiki locally