The fonts in Myrlyn are way too small.
Hi, which Desktop Environment are you using? Here is some talk about Myrlyn fonts in Gnome. :< Myrlyn under GNOME
Using Plasma.
Mine are fine … have you checked the qt6ct program to see which fonts QT programs are using?
I read somewhere that myrlin is a root app, then to modify the font, you have to modify in kde root system setting.
Like always, this means nothing without the source URL and full content.
Yeah. It’s ok as regular user. I logged out, unplugged my ethernet cable, logged as root and changed the fonts in system settings to match my regular user desktop. It made no difference when I logged back in and opened the app as root.
Okay, when logged in as your regular user account, open up the konsole app. Next, execute this:
user@machine :~> sudo -E myrlyn
So how does Myrlyn look, font-wise and does it match the “theme” set for your user?
See also here:
Download that latest myrlyn-sudo from Git, then create a new file ~/.config/openSUSE/myrlyn-sudo.conf (in your home directory, not root’s) with the variables that you’d like to set for root:
QT_QPA_PLATFORMTHEME=qt6ct
QT_ENABLE_HIGHDPI_SCALING=0
QT_SCALE_FACTOR=1
The new myrlyn-sudo will read that file and set the variables accordingly for the sudo call. You can change all environment variables there that are listed in myrlyn-sudo.
This will become part of the next Myrlyn release, but some more user testing might help.
Just FYI (on my machine) I have QT_QPA_PLATFORMTHEME=qt6ct set and then use qt6ct to actually check the fonts … if there’s an extremely obnoxious program that comes up too big to see the buttons QT_SCALE_FACTOR=0.8 will usually suffice but I think that was when I had hidpi set so QT_ENABLE_HIGHDPI_SCALING=0 would’ve taken care of that … looks good to me
user@machine :~> sudo -E myrlyn
No change
It depends on the individual case. On my 128 dpi Lenovo T14 laptop, I needed QT_ENABLE_HIGHDPI_SCALING=0 to avoid Qt scaling everything into pixel mush. On another machine, I needed QT_SCALE_FACTOR=1 to avoid an absolutely huge window with huge fonts.
The Qt people have been working forever on that HiDPI stuff, and they keep on changing it between versions. It appears to me that there is no really good solution that fits everyone, so things just keep changing, not improving. They try automagic, but it turns out to be just annoying in too many cases. I’d really welcome one central config file to set that stuff, not have it all over the place.
I wonder if it has anything to do with my sudo password and su password being different. When I log out and back in as root to change the fonts in the personal settings I use the root password I set up when I installed the system. When I am using Myrlyn logged in as a regular user I give it a sudo password which is different. Should I expect the variables to match?
su always asks for the root password (if you su to root).
sudo depends on your configuration: targetpw means you have to enter the password of the target of that operation, usually root. That was the default for SUSE before Leap 16.0.
!targetpw means you have to enter your own password; only then you can configure users with limited privileges, like a printer admin who can only use printer-related commands with root privileges. This is the default now from Leap 16.0 on for users who are in the wheel user group. Users who are not in the wheel user group still have to enter the root password; otherwise everybody could easily get root access with their own password.
But environment variables needed by the Qt libs (which Myrlyn uses) are independent of that. If a user requests to keep environment variables, but does not have any permission for that in the sudo configuration, the sudo call will throw an error.
Try adding your environment variables to /root/.bashrc.
OK.Just call me boo boo. I was just in a root session with ethernet unplugged to check my findings. It’s fixed now but I got some weird behavior nonetheless. It would come up normally as regular version user just like it would if I were logged in as regular user, but as soon as I chose the root version it came up small again. Log into desktop as regular user and try sudo, it’s small but su in terminal first and voila there you go. Little more work but no biggie.
This works too.
Checked the run as a different user box on the read only entry in the menu and got an su version with bigger fonts.
Been using Linux almost 20 years and I still treat it like I’m in Windows.
root has its own config files stored at /root the roots home directory. You need to change those configes (ie fonts, colors, sizes etc) to change how a root process is displayed in a non root owned GUI.
Not true for my long-time experience | usage. As I have already posted a detailed Reply (in another similar thread) showing how it works for me (# sudo -E … inherits my user profile - no need to mess with root’s GUI config), I’ll provide the link (compare the 2 screenshots):
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.