Skip to content
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

bug: .gtkrc-2.0 (gtk2) contain spaces and do not load properly #5390

Closed
2 tasks done
hervyqa opened this issue May 10, 2024 · 1 comment
Closed
2 tasks done

bug: .gtkrc-2.0 (gtk2) contain spaces and do not load properly #5390

hervyqa opened this issue May 10, 2024 · 1 comment
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@hervyqa
Copy link

hervyqa commented May 10, 2024

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Describe the bug

.gtkrc-2.0 (GTK2) contains spaces so it doesn't load properly.

Steps to reproduce

  1. This is my GTK settings for GTK2 and GTK3.
{
  pkgs,
  ...
}: let
  name = "hervyqa";
in {
  home-manager = {
    users.${name} = {
    
      home = {
        packages = with pkgs; [
          lxappearance-gtk2
        ];

      gtk = {
        enable = true;
        font = {
          name = "Roboto";
          size= 8;
        };
        theme = {
          name = "Breeze-Dark";
          package = pkgs.libsForQt5.breeze-gtk;
        };
        iconTheme = {
          name = "Papirus-Dark";
          package = pkgs.papirus-icon-theme;
        };
        cursorTheme = {
          name = "breeze_cursors";
          size = 24;
        };
      };
    };
  };
}
  1. open lxappearance-gtk2 (gtk2 apps).
  2. logout.

Actual behavior

➜  ~ cat ~/.gtkrc-2.0
gtk-cursor-theme-name = "breeze_cursors"
gtk-cursor-theme-size = 24
gtk-font-name = "Roboto 8"
gtk-icon-theme-name = "Papirus-Dark"
gtk-theme-name = "Breeze-Dark"
➜  ~

20240510_08h03m08s_@hervyqa

GTK3 runs smoothly no problem.

➜  ~ cat ~/.config/gtk-3.0/settings.ini
[Settings]
gtk-cursor-theme-name=breeze_cursors
gtk-cursor-theme-size=24
gtk-font-name=Roboto 8
gtk-icon-theme-name=Papirus-Dark
gtk-theme-name=Breeze-Dark
➜  ~

Expected behavior

No spacing before and after =.

➜  ~ cat ~/.gtkrc-2.0
gtk-cursor-theme-name="breeze_cursors"
gtk-cursor-theme-size=24
gtk-font-name="Roboto 8"
gtk-icon-theme-name="Papirus-Dark"
gtk-theme-name="Breeze-Dark"
➜  ~

20240510_08h04m15s_@hervyqa

Maintainer CC

@JulianFP @rycee

System information

➜  ~ doas nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz
nixos https://nixos.org/channels/nixos-23.11
➜  ~ nix-shell -p nix-info --run 'nix-info -m'
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.25-rt29, NixOS, 23.11 (Tapir), 23.11.6478.bc194f70731c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"home-manager-23.11.tar.gz, nixos-23.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

➜  ~
@hervyqa hervyqa added bug triage Issues or feature request that have not been triaged yet labels May 10, 2024
@hervyqa
Copy link
Author

hervyqa commented Jun 1, 2024

solved. I haven't changed the xsettingsd settings. services.xsettingsd.settings

@hervyqa hervyqa closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants