-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lxqt: use qt5's mkDerivation #65482
lxqt: use qt5's mkDerivation #65482
Conversation
Idem. |
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/nixos-19-09-feature-freeze/3707/6 |
cc @ttuegel any idea what's going wrong here? Currently this is broken, and that's not a good shape for the release or users. |
What theme package is used, and how is it installed? |
These packages appear to be installed as pre-requisites
and I'm assuming the theming package would be All of which are installed with |
I investigated this a little. It's unfortunately difficult to diagnose because applications seem to load their themes correctly, it's just the desktop that's the problem, and the desktop doesn't send logs to the system journal. |
I think the default settings are just scrambled somehow. If I set the panel background color and the launcher icon, then everything seems to work OK; it looks like the defaults just aren't initialized correctly. |
Ahh, I think I thought of the same thing. What operation does the application do to modify those things? If it's something environmental it can go in the session script, or maybe something is up with the |
My best guess (unvalidated, at the moment) is that there is a "default" configuration file that ships with LXQT. The changes to the Qt wrappers might have broken the resolution of that file's name. Without the default file, the panel's color is "uninitialized"; IIRC the uninitialized |
This should also ensure that the applications get wrapped appropriately.
So it does appear that the script for the environmental initialzation has an issue
The nix store paths to |
LXQt uses the values in this macro to set installation directories and in the case of lxqt-session to substitute in paths. However, by doing this all the paths are from within lxqt-build-tools prefix. By utilizing a setup hook we can set the directories with the correct prefix as cmake flags.
So in the process of debugging this it appears I've fixed a separate issue e34de04 that doesn't produce the effects I wanted. With the paths corrected in the script this still occurs. I've tried actually disabling are there environment variables I can set to get debug messages? |
Can we merge this and fix up the theming in a new PR, it's rather annoying if one's terminal doesn't start... |
@globin That's fine, I'm mostly holding off because this is a pretty ugly regression for users of the desktop. |
Well it doesn't seem to work at all currently so this definitely should be an improvement already? |
No disagreement there @globin. I just need someone to review my new changes then. |
@ttuegel - you are right |
It seems more is broken with the panel when I compare the appearance with screenshots of how themes should look. For instance, no border colour is applied to the panel, which can make it look off.
Fixed by adding Are there any partial fixes for the panel problem? Thanks for any help. |
I could not find a fix for this issue yet. As a workaround one can set the foreground and/or background colors in the lxqt panel properties. |
As there are other theme attributes LXQT applies to the panel, aside from colour, this is only a partial workaround. It isn't a massive deal, but here is a screenshot of an LXQT theme I use on a laptop not switched over to NixOS yet. Notice the 3D border of the panel edge. Here is the same theme on NixOS. The panel is cutoff where the 3D border should appear, and the correct style for the buttons and workspaces do not get applied either. Spot the difference. This particular theme still doesn't look too broken or inconsistent because the underlying widget-engine theme I'm using still gets applied, but other panel themes may look worse depending on the widgets used, as the styles aren't getting applied correctly. Hopefully I will figure out a fix soon. |
When I was looking at this a while ago, it seemed that the theme paths were getting rewritten to the lxqt package, rather than the themes package. |
@lordcirth I believe that was fixed in e34de04 |
It was not. See #65482 (comment) onward. |
Any themes installed by the package show in the preferences window to change themes, but do not get applied when selected. Themes installed in ~/.local/share/lxqt/themes also show, and also do not get applied when selected. |
Motivation for this change
Wrap lxqt applications #65399 #65399 (comment)
LXQT now starts in a vm for me, however there seems to be something up with the
theme and or icons.
Appearance before wrapQtAppsHook
Appearance after wrapQtAppsHook
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)