pdfjs: search in ~/.local/share/qutebrowser
This commit is contained in:
parent
623b6fba7e
commit
1c13a3cd68
@ -91,6 +91,7 @@ def fix_urls(asset):
|
|||||||
SYSTEM_PDFJS_PATHS = [
|
SYSTEM_PDFJS_PATHS = [
|
||||||
'/usr/share/pdf.js/', # Debian pdf.js-common
|
'/usr/share/pdf.js/', # Debian pdf.js-common
|
||||||
'/usr/share/javascript/pdf/', # Debian libjs-pdf
|
'/usr/share/javascript/pdf/', # Debian libjs-pdf
|
||||||
|
os.path.expanduser('~/.local/share/qutebrowser/pdfjs/'), # fallback
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,6 +34,11 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.warning {
|
||||||
|
text-weigth: bold;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
color: #555;
|
color: #555;
|
||||||
@ -99,6 +104,18 @@ li {
|
|||||||
You can use the <code>scripts/dev/update_3rdparty.py</code> script
|
You can use the <code>scripts/dev/update_3rdparty.py</code> script
|
||||||
to download the latest version.
|
to download the latest version.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
You can manually download the pdf.js archive
|
||||||
|
<a href="https://mozilla.github.io/pdf.js/getting_started/#download">here</a>
|
||||||
|
and extract it to <code>~/.local/share/qutebrowser/pdfjs</code>
|
||||||
|
<br>
|
||||||
|
<span class="warning">Warning:</span> Using this method you are
|
||||||
|
responsible for yourself to keep the installation updated! If a
|
||||||
|
vulnerability is found in pdf.js, neither qutebrowser nor your
|
||||||
|
system's package manager will update your pdf.js installation.
|
||||||
|
Use it at your own risk!
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user