From e58e40ba62dc63b1941dd5e411bc48dc77d6a9ad Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 10 Aug 2012 10:29:04 +0200 Subject: core.runner: use setsid to stabilize detached programs This fixes the bug that some programs are killed even if they were run with the "d" flag, if ranger is killed by closing its terminal with the window manager instead of closed with :quit. --- ranger/core/runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ranger/core/runner.py b/ranger/core/runner.py index 17cdcca5..c02ad6b3 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -186,6 +186,8 @@ class Runner(object): popen_kws[key] = devnull_writable popen_kws['stdin'] = devnull_readable if 'd' in context.flags: + if not isinstance(action, str) and 'setsid' in get_executables(): + action = ['setsid'] + action toggle_ui = False context.wait = False if 'w' in context.flags: -- cgit 1.4.1-2-gfad0 From 5856458fa272b009b9160525188671cddfe7860f Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 10 Aug 2012 11:50:39 +0200 Subject: defaults/apps.py: added "odb" entry --- ranger/defaults/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 1619eb1e..ffab8bea 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -135,7 +135,7 @@ class CustomApplications(Applications): if f.extension == 'doc': return self.either(c, 'abiword', 'libreoffice', 'soffice', 'ooffice') - if f.extension in ('odt', 'ods', 'odp', 'odf', 'odg', 'sxc', + if f.extension in ('odt', 'ods', 'odp', 'odf', 'odg', 'odb', 'sxc', 'stc', 'xls', 'xlsx', 'xlt', 'xlw', 'gnm', 'gnumeric'): return self.either(c, 'gnumeric', 'kspread', 'libreoffice', 'soffice', 'ooffice') -- cgit 1.4.1-2-gfad0 From 60a6b7e639666051e8b7288b932498b19c299a00 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 10 Aug 2012 16:15:56 +0200 Subject: ceci n'est pas un nouveau version --- CHANGELOG | 3 +++ README | 2 +- doc/ranger.1 | 4 ++-- ranger/__init__.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 79949eb2..03f3f03b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ This log documents changes between stable versions. +2012-08-10: Version 1.5.5 +* Ensure that detached programs continue to run when ranger is killed + 2012-05-03: Version 1.5.4 * Added exiftool to scope.sh by default * Fixed a crash when entering a directory with a unicode name diff --git a/README b/README index 0688030d..d1f9f513 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -ranger v.1.5.4 +ranger v.1.5.5 ============== ranger is a console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. diff --git a/doc/ranger.1 b/doc/ranger.1 index e3e48c2d..e5a79160 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) +.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.20) .\" .\" Standard preamble: .\" ======================================================================== @@ -124,7 +124,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.5.4" "05/03/2012" "ranger manual" +.TH RANGER 1 "ranger-1.5.5" "08/10/2012" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff --git a/ranger/__init__.py b/ranger/__init__.py index ae9229b3..fa6800b3 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -25,7 +25,7 @@ import os # Information __license__ = 'GPL3' -__version__ = '1.5.4' +__version__ = '1.5.5' __author__ = __maintainer__ = 'Roman Zimbelmann' __email__ = 'romanz@lavabit.com' -- cgit 1.4.1-2-gfad0 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50