~jaap.karssenberg/zim/pyzim-refactor

« back to all changes in this revision

Viewing changes to data/manual/Help/Automount.txt

  • Committer: Jaap Karssenberg
  • Date: 2014-02-11 17:59:18 UTC
  • mfrom: (715.1.2 pyzim-refactor)
  • Revision ID: jaap.karssenberg@gmail.com-20140211175918-epthv7bd3juey9e0
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Content-Type: text/x-zim-wiki
 
2
Wiki-Format: zim 0.4
 
3
Creation-Date: 2011-12-11T19:15:27+01:00
 
4
 
 
5
====== Automount ======
 
6
 
 
7
As a special feature notebooks can be "mounted" automatically when opened. This can e.g. be used to connect with remote drives or unlock an encrypted drive when zim is trying to open a specific notebook.
 
8
 
 
9
===== Config file =====
 
10
The paths to be automounted and the commands to mount them are configured in a config file "''~/.config/zim/automount.conf''" (see [[Config Files]] for alternative locations).
 
11
 
 
12
The config file has a group for each path, followed with options. Currently the only supported option is a "mount" command. For example if you have an Ubuntu setup to encrypt the "''~/Documents''" folder, you can create a config file with the following two lines:
 
13
 
 
14
'''
 
15
[Path ~/Documents]
 
16
mount=xterm -e /usr/bin/ecryptfs-mount-private
 
17
'''
 
18
 
 
19
The result will be that whenever zim tries to access an notebook stored under the Documents folder while that folder is not decrypted, it will prompt a terminal window to ask for the password and then mount the folder. If it fails, you still get a "notebook not found" error.
 
20
 
 
21
Similarly you can configure various scripts of your own design.