I really appreciate the time and effort that went into Myrlyn so far - I am using it now and then on my TW install and it helps a lot, because I am no linux veteran by any means (Linux user since a year now, yay!).
Was wondering if there will be, or maybe already is (and I’m just stupid) a dark mode version for it? I don’t like getting “flash banged” on my 34" monitor, lol.
erlangen:~ # zypper --verbose --non-interactive dist-upgrade --dry-run --download-only
Entering non-interactive mode.
Verbosity: 2
Initialising Target
Refreshing service 'openSUSE'.
Checking whether to refresh metadata for Application:Geo
Checking whether to refresh metadata for BellSoft Repository
Checking whether to refresh metadata for Packman
Checking whether to refresh metadata for Brave Browser
Checking whether to refresh metadata for filesystems
Checking whether to refresh metadata for graphics
Checking whether to refresh metadata for hardware
Checking whether to refresh metadata for qmapshack (openSUSE_Tumbleweed)
Checking whether to refresh metadata for home:shundhammer:myrlyn-git
Checking whether to refresh metadata for ihe-repo
Checking whether to refresh metadata for jalbum
Checking whether to refresh metadata for myrepo
Checking whether to refresh metadata for repo-non-oss
Checking whether to refresh metadata for repo-openh264
Checking whether to refresh metadata for repo-oss
Checking whether to refresh metadata for update-tumbleweed
Checking whether to refresh metadata for utilities
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...
Force resolution: No
Computing upgrade...
The following package is going to be upgraded:
myrlyn 1.0.0+git20260116.b1b2aad-5.1 -> 1.0.0+git20260117.58a8c14-7.1
1 package to upgrade.
Package download size:
| 538.2 KiB overall package size
0 B | - 538.2 KiB already in cache
Download only.
Backend: classic_rpmtrans --dry-run --download-only
Continue? [y/n/v/...? shows all options] (y): y
committing (dry run)
In cache myrlyn-1.0.0+git20260117.58a8c14-7.1.x86_64.rpm (1/1), 538.2 KiB
Checking for file conflicts: .........................................................................................................................................................................................................[done]
CommitResult (total 1, done 0, error 0, skipped 1, updateMessages 0)
erlangen:~ #
For your own user account, the Qt libs (which is what Myrlyn uses) should follow your desktop theme; at least for the common desktops like KDE Plasma, GNOME, Xfce. So if you have a dark desktop theme, Myrlyn should also use that one. Same with fonts and font sizes.
But to do anything meaningful, you’ll be running Myrlyn with root permissions, typical via sudo (myrlyn_sudo which the myrlyn.desktop file is using is just a very thin wrapper around sudo), so the desktop settings of the root user are used here.
See also
You can now also set environment variables for that sudo call in your normal user account’s ~/.config/openSUSE/myrlyn-sudo.conf file; no need to copy and modify the myrlyn.desktop file.
So, it depends on the DE being used and if you have “dark mode” enabled for the user account (for the DE) executing “myrlyn”.
I use KDE Plasma here, and if I execute the “Myrlyn” choice in the KDE “System” menu (not the “Myrlyn read-only” choice) , which is the “root” version of Myrlyn, its dialog boxes are displayed with a bright-white background. (I have NOT logged into the root-user account in GUI mode, which is why it shows up with bright-white dialog boxes).
For me, the easiest solution is to open up a Konsole (KDE Plasma windowed command line) and execute this:
user@machine :~> sudo -E myrlyn
That executes myrlyn as root user, and it inherits the KDE Plasma Dark Mode that my regular user account has set. The result is Myrlyn shown with dark-mode windows.
does the trick - thank you @myswtest ! And sorry, forgot to mention that I am using KDE, my bad.
What kinda confuses me is, even after I changed my theme to Dark in root session - myrlyn still opens in a white theme - I thought myrlyn_sudo is picking the root theme then? @shundhammer
Check if there is a check box like “ Apply the KDE Plasma theme to non-KDE programs” in that root desktop.
I seem to recall that the Qt documentation insists that Qt automatically uses the current desktop’s theme (of the current user, in this case root). I am surprised that it doesn’t do that here.
Check the log for “logQtEnv” where it logs all environment variables starting with “QT”:
In my case, I intentionally set those environment variables (in my ~/.config/openSUSE/myrlyn-sudo.conf). If yours also contains QT_QPA_PLATFORMTHEME=qt6ct, that might interfere with automatically using the desktop theme since that environment variable overrides it.
No; all that it does is to preserve a number of environment variables from your environment over to the environment of the sudo’ed process. It’s a very simple script:
Some dumbass script in OBS stripping away things that it doesn’t consider necessary. The joys of centralized corporate tools designed by people who think they know better.