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

Wallpaper withBinaryFile does not exist (No such file or directory) #324

Closed
ddogfoodd opened this issue Apr 2, 2024 · 9 comments · Fixed by #318
Closed

Wallpaper withBinaryFile does not exist (No such file or directory) #324

ddogfoodd opened this issue Apr 2, 2024 · 9 comments · Fixed by #318
Assignees
Labels
bug Something isn't working properly

Comments

@ddogfoodd
Copy link

I just updated to the latest in nixos-unstable, now stylix palette creation fails as it doesn't seem to find my wallpaper.

I get the following error:

Processing /home/user/.config/nixos/wallpaper.jpg
palette-generator: /home/user/.config/nixos/wallpaper.jpg: withBinaryFile: does not exist (No such file or directory)
CallStack (from HasCallStack):
  error, called at Stylix/Main.hs:15:26 in main:Main

I made sure the file (/home/user/.config/nixos/wallpaper.jpg) still exists.
I am not sure, but I update regularly so maybe the error was introduced with this recent commit changing wallpaper path handling.

I would like to test if it does but am not sure yet if there is a convenient way to revert back to before this commit with Nix.
If you know how to do it, drop me a hint and I will try it out.

@trueNAHO
Copy link
Collaborator

trueNAHO commented Apr 2, 2024

I would like to test if it does but am not sure yet if there is a convenient way to revert back to before this commit with Nix.
If you know how to do it, drop me a hint and I will try it out.

To automate the procecdure, you could write a small script that runs git bisect run on Stylix, and on each iteration you verify whether your NixOS or Home Manager configuration still works.

@trueNAHO trueNAHO added the bug Something isn't working properly label Apr 2, 2024
@wanderer
Copy link

wanderer commented Apr 3, 2024

I also am having this problem

trueNAHO added a commit to trueNAHO/stylix that referenced this issue Apr 3, 2024
@trueNAHO
Copy link
Collaborator

trueNAHO commented Apr 3, 2024

Does #329 resolve the issue?

@ddogfoodd
Copy link
Author

To automate the procecdure, you could write a small script that runs git bisect run on Stylix, and on each iteration you verify whether your NixOS or Home Manager configuration still works.

Does this work with nix flakes installation or just with the cloned git repo?

@trueNAHO
Copy link
Collaborator

trueNAHO commented Apr 3, 2024

To automate the procecdure, you could write a small script that runs git bisect run on Stylix, and on each iteration you verify whether your NixOS or Home Manager configuration still works.

Does this work with nix flakes installation or just with the cloned git repo?

For example, you could specify the commit hash as:

url = "github:aarowill/base16-alacritty/63d8ae5dfefe5db825dd4c699d0cdc2fc2c3eaf7";

Personally, I prefer to do this with a local clone:

- inputs.stylix.url = "github:danth/stylix";
+ inputs.stylix.url = "git+file:/path/to/stylix";

In /path/to/stylix, I simply git checkout whatever commit I want, and then I nix flake lock --update-input stylix in the flake.nix file that imports it.

Does #329 resolve the issue?

Alternatively, you could test this PR with:

- inputs.stylix.url = "github:danth/stylix";
+ inputs.stylix.url = "github:trueNAHO/stylix/fix-stylix-palette-do-not-escape-spaces-in-wallpaper-path";

@feathecutie
Copy link
Contributor

Does #329 resolve the issue?

I'm having the exact same issue, and for me, that PR resolved it.

@ddogfoodd
Copy link
Author

Thanks for the explanation, also yes that fixed it. Thanks for that as well!
Do I keep the issue open until merge?

danth pushed a commit that referenced this issue Apr 3, 2024
@danth
Copy link
Owner

danth commented Apr 3, 2024

The commit which caused this has been reverted for now.

@zDyanTB
Copy link

zDyanTB commented Jun 25, 2024

If you put "" around the image path, it returns that same error, just in case anyone face it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants