mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
df49debcf8
commit
ca693798c3
@ -874,8 +874,7 @@ def setup_gui_option_parser(parser):
|
||||
parser.add_option('--detach', default=False, action='store_true',
|
||||
help=_('Detach from the controlling terminal, if any (linux only)'))
|
||||
|
||||
def detach_gui():
|
||||
if islinux and not DEBUG:
|
||||
def do_detach():
|
||||
# Detach from the controlling process.
|
||||
if os.fork() != 0:
|
||||
raise SystemExit(0)
|
||||
@ -885,6 +884,10 @@ def detach_gui():
|
||||
except AttributeError:
|
||||
pass # people running from source without updated binaries
|
||||
|
||||
def detach_gui():
|
||||
if islinux and not DEBUG:
|
||||
do_detach()
|
||||
|
||||
class Application(QApplication):
|
||||
|
||||
def __init__(self, args, force_calibre_style=False, override_program_name=None, headless=False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user