Bug 440946 - Unable to hide the new toolbar
Summary: Unable to hide the new toolbar
Status: RESOLVED DUPLICATE of bug 430036
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-13 23:21 UTC by Qu Wenruo
Modified: 2021-08-18 07:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Contents of my sessionui.rc file (2.79 KB, application/xml)
2021-08-16 22:30 UTC, John Zaitseff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Qu Wenruo 2021-08-13 23:21:11 UTC
SUMMARY
Even with menubar hidden by default, there is no way to hide the new toolbar (Main toolbar and session toolbar).

I understand some developers like the new design, but it's definitely not a good design for minimalists.

Normally konsole has good enough options to hide things one doesn't like, but I can only find a temporary fix (right click the menubar to hide the new toolbars), but new window will still have the toolbars.

STEPS TO REPRODUCE
1. Configure konsole to hide menubar, scrollbar, etc..
2. Save the config/profile
3. Start a new konsole

OBSERVED RESULT
The new toolbars still show up no matter whatever config I tried


EXPECTED RESULT
The new toolbars get hidden.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 John Zaitseff 2021-08-14 00:09:24 UTC
I am seeing the same issue: Kubuntu 21.04 with Kubuntu PPA and Kubuntu Backports PPA, konsole package 4:21.08.0-0ubuntu1~ubuntu21.04~ppa1.
Comment 2 John Zaitseff 2021-08-14 01:12:37 UTC
A workaround I have found on my system:

1. Edit the file ~/.local/share/kxmlgui5/konsole/konsoleui.rc and completely remove the XML section <ToolBar name="mainToolBar"> ... </ToolBar>.

2. Edit the file ~/.local/share/kxmlgui5/konsole/sessionui.rc and completely remove the XML section <ToolBar name="sessionToolbar"> ... </ToolBar> (note: "Toolbar", NOT "ToolBar"!).

3. Restart konsole: no more toolbars.
Comment 3 John Zaitseff 2021-08-14 01:14:11 UTC
> (note: "Toolbar", NOT "ToolBar"!)

This referred to the inconsistency in the "name=" portion: that is, "sessionToolbar" instead of "sessionToolBar".
Comment 4 Antonio Rojas 2021-08-14 07:41:03 UTC

*** This bug has been marked as a duplicate of bug 430036 ***
Comment 5 Dave 2021-08-16 12:33:35 UTC
(In reply to John Zaitseff from comment #2)
> 1. Edit the file ~/.local/share/kxmlgui5/konsole/konsoleui.rc and completely
> remove the XML section <ToolBar name="mainToolBar"> ... </ToolBar>.

This works and removes the left part of the bar (New Tab and 2x Split View button).


> 2. Edit the file ~/.local/share/kxmlgui5/konsole/sessionui.rc and completely
> remove the XML section <ToolBar name="sessionToolbar"> ... </ToolBar> (note:
> "Toolbar", NOT "ToolBar"!).

Unfortunately, there is no such section in this file on my system, and I am unable to get rid of the right part of the bar (Copy/Paste/Find). Any ideas?

Thank you in advance.
Comment 6 John Zaitseff 2021-08-16 22:29:24 UTC
(In reply to Dave from comment #5)
> > 2. Edit the file ~/.local/share/kxmlgui5/konsole/sessionui.rc and completely
> > remove the XML section <ToolBar name="sessionToolbar"> ... </ToolBar> (note:
> > "Toolbar", NOT "ToolBar"!).
> 
> Unfortunately, there is no such section in this file on my system, and I am
> unable to get rid of the right part of the bar (Copy/Paste/Find). Any ideas?

If this file does not exist, perhaps do "touch ~/.local/share/kxmlgui5/konsole/sessionui.rc" -- but that might break other things like the menu bar.  Attached is the contents of my sessionui.rc that you could try using.

If this file DOES exist without the <ToolBar name="sessionToolbar"> section, and you are still getting a toolbar, then unfortunately I have no suggestions.
Comment 7 John Zaitseff 2021-08-16 22:30:23 UTC
Created attachment 140781 [details]
Contents of my sessionui.rc file
Comment 8 Dave 2021-08-17 07:57:03 UTC
(In reply to John Zaitseff from comment #6)
> If this file DOES exist without the <ToolBar name="sessionToolbar"> section,
> and you are still getting a toolbar, then unfortunately I have no
> suggestions.

Unfortunately, that is the case. My sessionui.rc file looks perfectly normal, has not any toolbar definition inside, but the toolbar still pops up in the konsole. It looks like that the bug comes with bugs. :) The only thing working for me, from all possible workarounds I have read of, is checking the "Remember window size" option. Unfortunately, that is not a viable solution for me. I ended up installing an older console along with the required libraries by hand for now.
Comment 9 John Zaitseff 2021-08-17 08:10:57 UTC
Odd, because I do NOT have "Remember window size" enabled.  In other words, in the file ~/.config/konsolerc, I have:

  [KonsoleWindow]
  SaveGeometryOnExit=false

I also have:

  [MainWindow]
  StatusBar=Disabled
  ToolBarsMovable=Disabled

in the same file.

Version numbers on Ubuntu 21.04: konsole 4:21.08.0-0ubuntu1~ubuntu21.04~ppa1, libkf5xmlgui5 5.85.0-0ubuntu1~ubuntu21.04~ppa1.
Comment 10 Dave 2021-08-18 07:52:24 UTC
(In reply to John Zaitseff from comment #9)
>   [KonsoleWindow]
>   SaveGeometryOnExit=false
> 
> I also have:
> 
>   [MainWindow]
>   StatusBar=Disabled
>   ToolBarsMovable=Disabled

Exactly the same here. For most affected people, konsole forgets about toolbars they disable after restart, unless the unrelated option "Remember window size" is checked.