Bug 391445 - Bold fonts set in profile settings are not applied after restarting konsole
Summary: Bold fonts set in profile settings are not applied after restarting konsole
Status: RESOLVED DUPLICATE of bug 378523
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 17.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-05 15:07 UTC by Eugene
Modified: 2019-10-01 05:33 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene 2018-03-05 15:07:38 UTC
How to reproduce:
1. Open Konsole.
2. Edit Current Profile.
3. In Appearance push 'Select Font'.
4. Change the font style from Regular to Bold.
5. Save the changes and reboot.

After reboot you'll that font changes has not been saved and returned to Regular.
Comment 1 Eugene 2018-03-05 15:11:51 UTC
On Wayland session font changes saves only till Konsole restarting, in X - till machine rebooting.
Comment 2 Ahmad Samir 2018-03-05 17:34:32 UTC
Please open the config file for the profile you're editing in ~/.local/share/konsole/<PROFILE_NAME>.profile , check the Font= entry, does it have ",Bold" at the end?
Comment 3 Eugene 2018-03-06 10:17:51 UTC
Yes, it does, but after Konsole restarting this entry not applies for some reason.

~/.local/share/konsole$ ls
'Профіль 1.profile'  'Profile 1.profile'
master@PC-Q35:~/.local/share/konsole$ cat Профіль\ 1.profile 
[Appearance]
ColorScheme=Linux
Font=Hack,9,-1,0,75,0,0,0,0,0,Bold

[General]
Name=Профіль 1
Parent=FALLBACK/
master@PC-Q35:~/.local/share/konsole$ cat Profile\ 1.profile 
[Appearance]
Font=Hack,9,-1,0,75,0,0,0,0,0,Bold

[General]
Name=Профіль 1
Parent=FALLBACK/
Comment 4 Sergio Torres Soldado 2018-03-06 20:45:50 UTC
This also happens to me using konsole 17.12.2 libqt* 5.10.1 Archlinux. A reboot is not necessary in my case, I just need to launch a new Konsole instance.
Comment 5 Eugene 2018-03-06 23:29:06 UTC
(In reply to Sergio Torres Soldado from comment #4)
> This also happens to me using konsole 17.12.2 libqt* 5.10.1 Archlinux. A
> reboot is not necessary in my case, I just need to launch a new Konsole
> instance.

Yes, you're right. Reboot is not necessary in my case too.
Comment 6 Ahmad Samir 2018-03-07 10:00:58 UTC
Please check the 'font=' line, under [General] section, in ~/.config/kdeglobals; if it has ',Regular' or ',Book' at the end, does removing that bit fix the issue of this report?
Comment 7 Eugene 2018-03-07 17:13:50 UTC
(In reply to Ahmad Samir from comment #6)
> Please check the 'font=' line, under [General] section, in
> ~/.config/kdeglobals; if it has ',Regular' or ',Book' at the end, does
> removing that bit fix the issue of this report?

There is no Regular or Book:

$ cat kdeglobals | grep -i general -A16
[General]
ColorScheme=Breeze
Name=Breeze
TerminalApplication=konsole
UseSystemBell=true
XftAntialias=true
XftHintStyle=hintslight
XftSubPixel=rgb
dbfile=/home/eugene/.mozilla/firefox/dxj844bp.default/places.sqlite
fixed=Hack,9,-1,5,50,0,0,0,0,0
font=Noto Sans,10,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,10,-1,5,50,0,0,0,0,0
shadeSortColumn=true
smallestReadableFont=Noto Sans,8,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,10,-1,5,50,0,0,0,0,0
widgetStyle=Breeze
Comment 8 Eugene 2018-03-07 17:26:55 UTC
Sorry, please dismiss the previous message. there is no 'font=' at all. Here is the output:

~/.config$ cat kdeglobals | grep -i general -A16
[General]
ColorScheme=Breeze
Name=Breeze
XftAntialias=true
XftHintStyle=hintmedium
XftSubPixel=none
dbfile=/home/master/.mozilla/firefox/kgbou01k.default/places.sqlite
shadeSortColumn=true
widgetStyle=Breeze

[Icons]
Theme=breeze

[KDE]
ColorScheme=Breeze
contrast=4
widgetStyle=Breeze
Comment 9 Altdel 2018-04-04 19:27:31 UTC
I'm having the same issue in konsole 17.12.3.
Bold font is rendered as Regular after restarting konsole.
Linux distro is KDE neon 5.12.
Plasma version 5.12.4
Qt 5.10.0
Comment 10 Ahmad Samir 2018-04-12 09:01:08 UTC
I think you need to have a "font=" entry in ~/.kdeglobals, that doesn't have the ",{Regular,Book}" bits appended; just to be sure no system-wide config is affecting your user account.
Comment 11 Eugene 2018-04-14 17:57:44 UTC
(In reply to Ahmad Samir from comment #10)
> I think you need to have a "font=" entry in ~/.kdeglobals, that doesn't have
> the ",{Regular,Book}" bits appended; just to be sure no system-wide config
> is affecting your user account.

There are several kdeglobals in a system:

$ locate kdeglobals
/home/master/.config/kdeglobals
/home/master/.kde/share/config/kdeglobals
/usr/share/kubuntu-default-settings/kf5-settings/kdeglobals

Which of them should have "font=" entry ?
Comment 12 Ahmad Samir 2018-04-14 18:44:35 UTC
I meant ~/.config/kdeglobals (IIUC, config entries there overrides the corresponding system-wide ones).
Comment 13 Eugene 2018-04-16 17:39:51 UTC
(In reply to Ahmad Samir from comment #12)
> I meant ~/.config/kdeglobals (IIUC, config entries there overrides the
> corresponding system-wide ones).

$ cat ~/.config/kdeglobals | grep -i "font="
font=
menuFont=Noto Sans,10,-1,5,50,0,0,0,0,0
smallestReadableFont=Noto Sans,8,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,10,-1,5,50,0,0,0,0,0
activeFont=Noto Sans,10,-1,5,50,0,0,0,0,0
Comment 14 Ahmad Samir 2018-04-16 18:18:37 UTC
Try:
font=Noto Sans,10,-1,5,50,0,0,0,0,0
Comment 15 Altdel 2018-04-16 22:47:16 UTC
Nice! It works for me. Thanks!
Comment 16 Eugene 2018-04-17 00:10:41 UTC
Surely it works. But it is don't work if to change the font by editing a current profile from a context menu.
Comment 17 Ahmad Samir 2018-04-17 12:16:37 UTC
(In reply to Eugene from comment #16)
> Surely it works. But it is don't work if to change the font by editing a
> current profile from a context menu.

You might need to restart konsole. Note that all these are workarounds not proper fixes, hopefully the situation will be sorted out eventually.
Comment 18 Ahmad Samir 2018-04-30 15:01:04 UTC
Now, I am pretty sure it's a duplicate.

*** This bug has been marked as a duplicate of bug 378523 ***