36704 Commits

Author SHA1 Message Date
Kovid Goyal
e88b9556f9
Update Psychology Today 2018-06-23 09:22:49 +05:30
Kovid Goyal
efa7e9e0b1
Linux installer: Also fix the execute bits in the umask if the user runs the installer with a umask that prevents files from being world executable.
Merge branch 'master' of https://github.com/jgoguen/calibre
2018-06-23 08:45:50 +05:30
Joel Goguen
1c25ba0042 Exclude execute from umask
If the umask is set up to exlude execute, the installer will set up
calibre to be unreadable by any user other than the installing user.
When installing as `root`, a starting umask of `0o077` results in the
installer choosing a new umask of `0o033`, which means the calibre
install directory (and child directories) are installed with permissions
`0o744`, so only the installing user can actually use the resulting
calibre install.

To test, start with a system umask of `0o077` and run the installer
script as root:

```
% sudo sh ./setup/linux-installer.sh
Using python executable: /usr/bin/python3
WARNING: Your current umask disallows reading of files by some users, this can cause system breakage when running the installer because of bugs in common system utilities.
Should the installer (f)ix the umask, (i)gnore it or (a)bort [f/i/a Default is abort]: f
umask changed to: 022
Installing to /opt/calibre
Downloading tarball signature securely...
Using previously downloaded calibre-3.26.1-x86_64.txz
Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
	Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit
	Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
	Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
	Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
	Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
	Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
	Symlinking /opt/calibre/calibre to /usr/bin/calibre
	Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
	Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
	Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
	Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
	Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
	Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
	Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
	Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish
	Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
	Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
	Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
	Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/site-functions/_calibre
Installing bash completion to: /usr/share/bash-completion/completions/calibre
Setting up desktop integration...
Creating un-installer: /usr/bin/calibre-uninstall
Run "calibre" to start calibre
```

And the resulting directory:
```
% ls -ld /opt/calibre
drwxr-xr-x. 5 root root 4.0K Jun 22 10:53 /opt/calibre/
```

Also verify the Python version, starting with no `/opt/calibre` and a system umask of `0o077`:
```
% sudo python3 ./setup/linux-installer.py
WARNING: Your current umask disallows reading of files by some users, this can cause system breakage when running the installer because of bugs in common system utilities.
Should the installer (f)ix the umask, (i)gnore it or (a)bort [f/i/a Default is abort]: f
umask changed to: 022
Installing to /opt/calibre
Downloading tarball signature securely...
Using previously downloaded calibre-3.26.1-x86_64.txz
Extracting files to /opt/calibre ...
Extracting application files...
Creating symlinks...
	Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
	Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
	Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
	Symlinking /opt/calibre/calibre to /usr/bin/calibre
	Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish
	Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
	Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
	Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
	Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
	Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
	Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
	Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
	Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
	Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
	Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
	Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
	Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
	Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit
	Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
Setting up command-line completion...
Installing zsh completion to: /usr/share/zsh/site-functions/_calibre
Installing bash completion to: /usr/share/bash-completion/completions/calibre
Setting up desktop integration...
Creating un-installer: /usr/bin/calibre-uninstall
Run "calibre" to start calibre

% ls -ld /opt/calibre
drwxr-xr-x. 5 root root 4.0K Jun 22 10:55 /opt/calibre/
```

After each, verify calibre starts as a non-root user.
2018-06-22 10:49:26 -07:00
Kovid Goyal
a3d901f74c
Sort the entries in the show column menu alphabetically. Fixes #1778155 [[enhancement] would like the "show columns" drop down to be alphabetical](https://bugs.launchpad.net/calibre/+bug/1778155) 2018-06-22 07:37:15 +05:30
Kovid Goyal
7e04aba85e
http -> https 2018-06-21 11:51:28 +05:30
Kovid Goyal
89ada80103
... 2018-06-21 11:49:53 +05:30
Kovid Goyal
3695c35229
More work on server book conversion 2018-06-21 11:47:37 +05:30
Kovid Goyal
27c79db06a
Refactor code to get conversion formats to make it re-useable 2018-06-20 10:32:55 +05:30
Kovid Goyal
91dcd80f8c
Start work on conversion for the content server 2018-06-20 07:46:24 +05:30
Kovid Goyal
38e2a5bdc1
Fix extraction of recipient email address when piping a message to calibre-smtp 2018-06-19 15:10:10 +05:30
Kovid Goyal
f03320ac76
Update The Atlantic 2018-06-19 13:20:23 +05:30
Kovid Goyal
17fc7b06f0
Change the default template for the Formats custom column to include spaces after the commas 2018-06-18 15:01:10 +05:30
Kovid Goyal
4df998fdd2
Ignore 404s on private bugs 2018-06-18 13:24:33 +05:30
Kovid Goyal
e20b1f2d0a
DOCX Input: Fix failure to convert some DOCX files that use Symbol fonts. Fixes #1777390 [Private bug](https://bugs.launchpad.net/calibre/+bug/1777390) 2018-06-18 13:18:35 +05:30
Kovid Goyal
c57a493711
Update LA Times 2018-06-17 21:58:35 +05:30
Kovid Goyal
494c5a9b29
Update Handelsblatt
Merge branch 'handelsblatt' of https://github.com/aimylios/calibre
2018-06-17 17:34:21 +05:30
Aimylios
4d1ecd0986 Update Handelsblatt 2018-06-17 11:48:31 +02:00
Kovid Goyal
472fc44c70
Update Newsweek 2018-06-17 08:51:41 +05:30
Kovid Goyal
d82d6f823c
Add a termplate 2018-06-16 13:10:05 +05:30
Kovid Goyal
27133e8327
Merge branch 'window_title' of https://github.com/mgziminsky/calibre 2018-06-16 12:54:04 +05:30
mgziminsky
c8291929dc Always include base_window_title in window title
Also include base title when controls are hidden for consistency
2018-06-15 23:59:18 -07:00
Kovid Goyal
a275acb5c0
E-book viewer: Set the column-fill property to auto
Needed for people that build calibre against newer version of
Qt WebKit.
2018-06-16 09:05:08 +05:30
Kovid Goyal
7d38911f68
version 3.26.1 v3.26.1 2018-06-15 12:25:24 +05:30
Kovid Goyal
3a6fd2bf0d
Dont show the merge books popup when dropping a book onto itself.
Fixes #1777054 [Merge books keeps popping up](https://bugs.launchpad.net/calibre/+bug/1777054)
2018-06-15 11:16:12 +05:30
Kovid Goyal
fe63b2fde8
version 3.26.0 v3.26.0 2018-06-15 06:26:53 +05:30
Kovid Goyal
470cd53e04
E-book viewer: When the controls are hidden show the progress in the window title. Fixes #1776710 [Feature Request: Show current page number in the window title](https://bugs.launchpad.net/calibre/+bug/1776710) 2018-06-14 07:53:38 +05:30
Kovid Goyal
312dae429e
Book list: Allow drag and drop of books onto other books to merge the book records. Fixes #1775123 [[Enhancement] Merge books with Drag/Drop](https://bugs.launchpad.net/calibre/+bug/1775123) 2018-06-13 17:31:26 +05:30
Kovid Goyal
ce7da098ca
... 2018-06-12 19:26:55 +05:30
Kovid Goyal
b5644ec6b0
Use only a single file for repeated data URIs 2018-06-12 18:18:43 +05:30
Kovid Goyal
e8fdd7a83c
Migrate git hooks to py3 2018-06-12 18:01:55 +05:30
Kovid Goyal
c82ee257dd
Edit book: When downloading external resources, also convert data URLs into files. Fixes #1774945 [[Enhancement] Image DataURI](https://bugs.launchpad.net/calibre/+bug/1774945) 2018-06-12 17:59:32 +05:30
Kovid Goyal
da35f86fa9
pep8 2018-06-12 09:48:42 +05:30
Kovid Goyal
5b024d3393
Fix merging books in the cover grid not respecting select order 2018-06-12 08:14:19 +05:30
Kovid Goyal
743ce97c9f
pep8 2018-06-12 08:02:57 +05:30
Kovid Goyal
f755746194
Content server: Fix a regression in 3.14 that removed the separator between books in the detailed list view mode. Fixes #1776294 [Version 3.25.0 broke separator lines in web server "detailed list mode"](https://bugs.launchpad.net/calibre/+bug/1776294) 2018-06-12 07:25:21 +05:30
Kovid Goyal
775ea77de5
Update Slate
Fixes #1774841 [Failed: Fetch news from Slate](https://bugs.launchpad.net/calibre/+bug/1774841)
2018-06-11 17:44:16 +05:30
Kovid Goyal
000c53b3b2
Update session file 2018-06-10 08:31:47 +05:30
Kovid Goyal
59844332da
pep8 2018-06-10 08:28:28 +05:30
Kovid Goyal
10aea19a9f
PDF Input: Fix a regression in 3.24 that caused conversion of PDF to be significantly worse. Fixes #1775984 [pdf to epub conversion worsen from 3.23 to 3.24](https://bugs.launchpad.net/calibre/+bug/1775984)
The magic cookie the conversion pipeline used to detect pdftohtml output
was being stripped by the change to handle private entities
2018-06-10 08:02:21 +05:30
Kovid Goyal
2a5c7c098b
pep8 2018-06-10 07:52:31 +05:30
Kovid Goyal
cd7e8891bd
Fix python invocation in git hooks 2018-06-10 07:33:54 +05:30
Kovid Goyal
d7828644f5
Fix #1775991 [Update the Quick Start Guide in Swedish](https://bugs.launchpad.net/calibre/+bug/1775991) 2018-06-09 18:33:30 +05:30
Kovid Goyal
b01e805aeb
Another column header context menu bug
It should not be possible, since the library view has too many columns
for outside column clicks, but apparently some people manage :)
2018-06-09 10:25:34 +05:30
Kovid Goyal
73029303d6
Dont use a set literal in the installer since there are apparently people still running linux installations with python 2.6 2018-06-09 07:05:03 +05:30
Kovid Goyal
7879e35337
Library Quick switch menu: Highlight the previously switched from library in bold. Fixes #1775888 [[Enhancement] Higlight last library in quick switch](https://bugs.launchpad.net/calibre/+bug/1775888) 2018-06-08 22:38:15 +05:30
Kovid Goyal
dc922e5a33
Port many images fix to browser viewer as well 2018-06-06 18:13:39 +05:30
Kovid Goyal
1cbd6ccf9b
E-book viewer: Fix very slow loading for HTML files with very many images on Linux. Fixes #1774884 [loading flow for some ebooks takes painfully long in linux](https://bugs.launchpad.net/calibre/+bug/1774884)
For some reason setting column break inside on the images was
causing a re-layout only on Linux.
2018-06-06 17:53:11 +05:30
Kovid Goyal
13f9a4b7c9
pep8 2018-06-06 17:36:04 +05:30
Kovid Goyal
c03377adc4
Check Book: External link checker: Also check HTML anchors (the part after the # in the link). Can be turned off via a checkbox at the bottom of the link checker window. 2018-06-06 08:27:12 +05:30
Kovid Goyal
04ba64d0d7
Also update links in translated quick start guides 2018-06-06 07:14:42 +05:30