Summary:
When restoring session in Konsole fails, the fallback code should
create a default view and session instead. However, the code omitted
adding this view to the container, which makes
- the window black (or grey in my case), see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935031
- konsole crash later, when you add a new tab and close it, because
code in ViewManager expects TerminalDisplays to be children of
ViewSplitter, which is not the case
This fix adds the view to activeController(), just like every other
code that creates TerminalDisplay.
Test Plan:
1. find a session in your $HOME/.config/session/ from konsole before 19.08
2. konsole -session xxxx (where xxxx are the numbers in the session file)
-> there should be a konsole window with usable terminal
3. add a new tab with C-S-T and close it
->there should be no crash
Reviewers: hindenburg, #konsole
Reviewed By: hindenburg, #konsole
Subscribers: tcanabrava, konsole-devel
Tags: #konsole
Differential Revision: https://phabricator.kde.org/D23601
When there are too many tabs to be shown in the window, a scrollbar
appears in the tabbar (this is not great usability-wise, but still
beat window auto-resizing, particularly when the window is already
maximized)
This is part of this merge request
https://invent.kde.org/kde/konsole/merge_requests/25
I'll leave changing TextElideMode for later review.
CCBUG: 403059
FIXED-IN: 19.08.1
Applying settings in Configure Konsole dialog was causing every Konsole
window to be hidden and shown again. This was leading to information
related to window management (window state, desktop, position/display,
etc.) to be lost - windows were appearing on current display, current
desktop, at new positions.
The hide/show action is triggered by setting window flags. Only "remove
window titlebar and frame" option really changes the flags, so it is
pointless to set them again in other cases. Now, flags are not set when
they are the same as current ones.
Additionally, when "remove window titlebar and frame" option is changed
and new flags are different, windows' positions and displays are
restored. Other properties are still being lost.
Test cases
----------
* Open a few Konsole windows, put them on different desktops and
at different positions.
* Open Configure Konsole dialog, change any option different than
"remove window titlebar and frame".
* Apply
**Before**
Konsole windows have been moved to current display and current desktop.
Their positions have changed. The configuration window has been placed
under them.
**After**
The side effects mentioned above do not occur.
---
* Open a few Konsole windows, put them on different desktops and at
different positions.
* Open Configure Konsole dialog, change "remove window titlebar and
frame" option.
* Apply
**Before**
Konsole windows' titlebar and frame became visible/invisible.
The windows have been moved to current desktop. Both their positions
and display have changed. The configuration window has been placed
under them.
**After**
Like before, except windows' position and display - they are restored
now.
This currently only catches bookmarks in top-level (ie not sub-folders)
Original code by Tomaz Canabrava <tcanabrava@kde.org>
BUG: 408939
FIXED-IN: 19.12
https://invent.kde.org/kde/konsole/merge_requests/8
Add the home sigil "~" for short cwd (it was only present for long cwd
for some reason), and the Bourne prompt sigils "$" (for regular user)
and "#" for superuser as the variable %B.
https://invent.kde.org/kde/konsole/merge_requests/19
Summary:
_pluggedController disconnection happens when session is closed
by closeInNormalWay or closeInForceWay and calling
disconnectController leads to Konsole crash. Also a case when
closeInNormalWay is false was not considered.
BUG: 410607
FIXED-IN: 19.08.1
Test Plan:
1. Open Konsole
2. Open one more tab
3. Try to close Konsole
4. Pick option "Close Current Tab" (assuming you have not check
'Do not ask again')
Reviewers: #konsole, hindenburg
Reviewed By: #konsole, hindenburg
Subscribers: hindenburg, konsole-devel, #konsole
Tags: #konsole
Differential Revision: https://phabricator.kde.org/D23246
Summary:
Randomize colors using HSLuv color space instead of HSL. It has
perceptually uniform lightness, which means every color with the same
lightness value is perceived as equally bright by humans. Displays
quality and lack of calibration in most monitors lowers this uniformity,
but even on worst color display it should be better than standard HSL.
More information about HSLuv: http://www.hsluv.org/
Minor changes:
* Random seed takes PID into account to prevent repeated colors in
separate Konsole processes
* Key names in a config were changed
* Adapted "Black on random light" color scheme
Breeze with random ranges on default bg and fg: hue=360° saturation=100:
{F6754773}
To be done in future:
* Automatically convert color schemes which use old randomization
method.
Reviewers: #konsole, #vdg
Subscribers: hindenburg, #vdg, #konsole
Tags: #konsole, #vdg
Differential Revision: https://phabricator.kde.org/D20263
Summary:
In all the cases that were changed, the bounding rect is needed. A few
places were not ported, since they need more careful investigation.
This reduces deprecation warnings.
Reviewers: #konsole, hindenburg
Reviewed By: #konsole, hindenburg
Subscribers: hindenburg, konsole-devel
Tags: #konsole
Differential Revision: https://phabricator.kde.org/D23144
Summary:
When there is only one tab and a process is running, remove the
'close current tab' option when attempting to close Konsole.
Test Plan:
1. Open Konsole (assuming you have not check 'Do not ask again')
2. Start any process (ie top)
3. Try to close Konsole
Should only be 2 options, 'Close window' and 'Cancel'
Reviewers: #konsole, hindenburg
Reviewed By: #konsole, hindenburg
Subscribers: hindenburg, ngraham, konsole-devel
Tags: #konsole
Differential Revision: https://phabricator.kde.org/D23146