nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.27k stars 1.68k forks source link

bug: firefox bookmarks fail to apply from hm config #4861

Open andar1an opened 5 months ago

andar1an commented 5 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

Whether using bookmarks, or bookmarks and directories, bookmarks are not added to Firefox when configured with home-manager. May be related to #4860 if nested path is issue for that.

Occasionally the bookmark bar will also reappear when disabled, but opening another tab often will get rid of it.

Rough code example:

bookmarks and directories:

 programs.firefox = {
      profile0 = {
        isDefault = true;
        id = 0;
        path = "profiles/profile0";
        bookmarks = [
          {
            name = "toolbar";
            toolbar = true;
            bookmarks = [
               {
                 name = "";
                 url = "";
                 keyword = "";
               }
            ];
           }
         ] ;
     };
};

bookmarks:

 programs.firefox = {
      profile0 = {
        isDefault = true;
        id = 0;
        path = "profiles/profile0";
            bookmarks = [
               {
                 name = "";
                 url = "";
                 keyword = "";
               }
            ];
          };
};

Maintainer CC

@rycee @kira-bruneau

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.1.69, NixOS, 24.05 (Uakari), 24.05.20240102.bd645e8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(stephen): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
D3vil0p3r commented 5 months ago

Im getting the same issue.

britter commented 3 months ago

Are you hitting #4731? It was fixed in Dec 23 but has not been released yet. I'm also waiting for it to be released with 24.05.

nonetrix commented 2 months ago

Getting same issue here :/

However, I am able to add bookmarks just not to the toolbar. So, not sure what is up here

britter commented 2 months ago

@nonetrix that's exactly what #4731 is about.

nonetrix commented 2 months ago

Sorry for my comment, not sure what I was doing wrong. I made it really late in the night so I think I was doing something dumb I will be completely honest, that has already been merged and now it seems to be working

britter commented 3 weeks ago

So I've updated to HM 24.05 and finally added the firefox module to my config https://github.com/britter/nix-configuration/pull/1. Unfortunately adding bookmarks to the toolbar does not seem to work. The bookmarks toolbar only contains the Import bookmarks... button. Not sure what's wrong.