Bug 370437 - Konsole freezes when opening new tab in deleted directory.
Summary: Konsole freezes when opening new tab in deleted directory.
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 16.04.3
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 371454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-11 01:07 UTC by Benn Snyder
Modified: 2016-11-18 14:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 16.12
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benn Snyder 2016-10-11 01:07:36 UTC
When opening a new tab, Konsole freezes if the current directory no longer exists.

Reproducible: Always

Steps to Reproduce:
    $ mkdir test
    $ cd test/
    $ rmdir ../test

Then press Ctrl+Shift+T to open a new tab.

Actual Results:  
All Konsole tabs and windows lock up indefinitely and must be killed.

Expected Results:  
Konsole should display a message about the directory not existing, and allow the user to close the new tab gracefully.
Comment 1 Christoph Feck 2016-10-11 01:16:06 UTC
Git commit 6e2d3f4e7e952a342ed91bf93d4487bd51a331ea by Kurt Hindenburg.
Committed on 08/10/2016 at 20:32.
Pushed by hindenburg into branch 'master'.

Validate initial working directory Profile entry

Verify the Profile's initial working directory exists and is a dir

This applies to KonsolePart as well as Konsole

M  +1    -0    src/Part.cpp
M  +16   -1    src/Session.cpp
M  +2    -0    src/Session.h

http://commits.kde.org/konsole/6e2d3f4e7e952a342ed91bf93d4487bd51a331ea
Comment 2 Daniel Lin 2016-11-18 14:15:26 UTC
*** Bug 371454 has been marked as a duplicate of this bug. ***