summarylogtreecommitdiffstats
path: root/zotero
blob: cd7241a55e0f84640161e40317a5183cd598fa58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Increase open files limit
#
# Mozilla file functions (OS.File.move()/copy(), NetUtil.asyncFetch/asyncCopy()) can leave file
# descriptors open for a few seconds (even with an explicit inputStream.close() in the case of
# the latter), so a source installation that copies ~500 translators and styles (with fds for
# source and target) can exceed the default 1024 limit.
# Current hard-limit on Ubuntu 16.10 is 4096
ulimit -n 4096

CALLDIR="$(dirname "$(readlink -f "$0")")"
firefox-esr52 -app "$CALLDIR/application.ini" "$@"