-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
xdg-desktop-portal-gtk breaks font hinting #93199
Comments
Right, looks like it is required since at least 1.5.0: |
This fixes "xdg-desktop-portal-gtk breaks font hinting". Aka, NixOS#93199.
I still experience font hinting issues when enabling |
I haven't had issues in Sway since this was merged: #93307 |
Ah, I was missing |
I do not know if my config has anything special, but with current nixos-unstable (21.03pre259928.2f47650c2f2 (Okapi)) I do experience the issue. {
xdg = {
icons.enable = true;
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
gtkUsePortal = true;
};
};
} Even stranger: I am a bit lost here. Just reverted for now, but I am far from making https://github.com/calbrecht/nixpkgs-overlays work. |
Sorry to read that @layus. Since September 2020 the overlay is obsolete, that is, all patches that i had copied in there, are present and meanwhile updated/outdated in Also, it seems to be mandatory to add to
|
Investigating further. It seems that if I AFAIU the challenge is to get xdg-desktop-portal and co. to have access to env vars defined by sway.
Another option seems to use @calbrecht Could you explain how you are running sway ? I cannot believe it only fails for me. |
@layus sure. It is nearly the same as you do manually, with the difference that i do {
environment.interactiveShellInit = ''
if test `tty` = /dev/tty1; then
exec sway
fi
'';
} |
Hmmm. I do not see what it could possibly change. Still, yet another thing to test :-D |
I don't know maybe you need both of those at the end of your
like stated in #106815 (comment). I just did not mention it because for @fadenb it did not seem to be required. |
Well, I have discovered that my setup was "polluted" by the gdm display-manager that I kept in another tty for easy switching to X11 when I needed advanced screencasting in Teams :-). This gdm spawned its own dbus, and mingled in various ways with nixos config. I have to test again everything. I guess it was also responsible for starting the graphical-session.target I wonder who is responsible for starting dbus in your setup. I guess it is socket-activated. Just checked. It is indeed. That also explains why exec systemctl --user import-environment works. It is a bit unfortunate that you cannot start gdm besides sway. I will have to figure out how to install it without starting it at boot. Or just make screencasting work in sway and forget X11 forever 🎉 |
Describe the bug
I noticed that enabling some XDG options, it breaks my GTK fonts:
Then when working on firefox and pipewire-0.3 patching today, I noticed this in @calbrecht's repo: https://github.com/calbrecht/nixpkgs-overlays/blob/11e28f1b10e48446811839680dec66691b57667b/nixpkgs/pkgs-overlays/xdg-desktop-portal-gtk/default.nix
It looks like we might want to fix this in nixpkgs.
The text was updated successfully, but these errors were encountered: