mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:04:39 +02:00
This commit is contained in:
parent
6dd41c1908
commit
653551ab6f
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ def file_renderer(stream, opts, parent=None, logger=None):
|
|||
logger = logging.getLogger('lrfviewer')
|
||||
setup_cli_handlers(logger, level)
|
||||
if islinux:
|
||||
try:
|
||||
try: # Set lrfviewer as the default for LRF files for this user
|
||||
from subprocess import call
|
||||
call('xdg-mime default libprs500-lrfviewer.desktop application/lrf', shell=True)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue