-
Notifications
You must be signed in to change notification settings - Fork 0
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
backends can't be managed under nixos #100
Comments
Can't replicate this, have been using this in my rwpspread -b swaybg -spdi "/home/$USER/.wallpaper" & Just tried it manually again ~ ❯ rwpspread --image ~/Downloads/.test/image.png
~ ❯ ls *.png
rwps_41f3d1da0227c1fe_DP-1.png
rwps_41f3d1da0227c1fe_DP-2.png
~ ❯ mv Downloads/.test/image.png Downloads/.test/.image.png
~ ❯ rwpspread --image ~/Downloads/.test/.image.png
~ ❯ ls *.png
rwps_7fc2e3a2fde152d9_DP-1.png
rwps_7fc2e3a2fde152d9_DP-2.png So at least it seems to work fine on Arch. Can't say if this is related to |
I'll update this issue when I get around to looking into it better. |
Can you try running just with Edit: ../rwpspread on master ❯ result/bin/rwpspread --image ~/Downloads/.test/.image.png
../rwpspread on master ❯ ls *.png
rwps_7fc2e3a2fde152d9_DP-1.png
rwps_7fc2e3a2fde152d9_DP-2.png
../rwpspread on master ❯ result/bin/rwpspread -b swaybg --image ~/Downloads/.test/.image.png
../rwpspread on master ❯ |
interesting.. seems it doesn't like how swaybg is installed with nix.
but even before that.. swaybg was available to my shell? so unsure why rwpspread had an issue with it. looking at the source breifly id have thought the error for swaybg being missing to be different? |
Alright this narrows it down a bit. Interesting that this is triggered only with dots in file paths, let me know when you find more about this. |
Also on NixOS, can also confirm that there's something funky going on:
Executed in sequence, first time it'll fail, second time it won't fail. Though, I'm still unable to set the wallpaper. Nothing changes, but that's a separate issue. |
Is this the latest release build and if not could you try with latest If the issue still persists I might need to spin up a NixOS instance myself, since I can't reproduce this on Arch it seems. |
Quick Update:: I was able to reproduce, by uninstalling the ../rwpspread ❯ target/release/rwpspread -b swaybg -i "/home/$USER/.wallpaper"
rwpspread: No such file or directory (os error 2)
../rwpspread ❯ target/release/rwpspread --version
rwpspread 0.2.1-1 On latest release I get a "correct" error, which is the inability to find ../rwpspread ❯ rwpspread -b swaybg -i "/home/$USER/.wallpaper"
rwpspread: swaybg is not installed
../rwpspread ❯ rwpspread --version
rwpspread 0.2.2-1 This is clearly an overlook on my side, since I'm used to Arch and most distros having Done in 0bd233a
Done in |
sorry I've been absent after making this. attempting to use swaybg (which is available in my users shell which i am running rwpspread from )
could this be to do with the cache of images once split? using a different image will get the first line to happen again and then no output until a different image is tried. the idea that a |
Ah this is a bit weird, now I am back at the point where I can't reproduce.
Going through my logic, caching should not be an issue on the first run, since we basically skip the whole caching entirely if no files a present. Returning nothing is a "good" sign since it correlates to a zero exit status and that nothing went wrong, which is clearly not the case here. The implementation for When you have the time, could you try running with UPDATE: Ok so what I found is that we still used two external utilites for process management, namely The So, please try building from master, the relevant commits are 92a1685 and 326670f. Hopefully this fixes it. Quick reminder that we now only rely on |
ahhh glad you were able to find this, I was off both times xD sorry.. wpaperd backends seem to have been fine this whole time and can change the wallpaper even if it rwpspread isnt the one to start it. if you don't want to consider this behavior an issue this issue can be closed.
UPDATE: |
Interesting to see that it fails to kill Other than that I'm glad we got to the root of this, I might just add another flag that bypasses the force-killing process and just starts its own instance regardless if another one is running or not. Would not be too much of a hassle to implement. If that isn't desired, I'll close, bump the version and call it a day. |
honestly a flag would be more hacky than just a notice that rwpspread should be left to start swaybg itself imho. thank you for working at this, my pr here should mean that ryantm will keep the package up to date automatically as the cargolock isn't kept separately anymore :) |
Cool, I'll bump this up to |
Closing with |
Sorry for not getting back to this sooner. Just wanted to say thank you, rwpspread behaves as expected now on NixOS. :) |
Glad to hear that, thanks for reporting back. :) |
issue as I now understand it.
backend processes couldn't be managed by rwpspread as it relied on
killall
which isn't included by default with nixos.realistically I should have simply made this a dependency of the package on nixos. but given the dependency is now removed I guess thats for the better .. 😅
oops! turns out this effected both back ends!
below is my first comment for this issue.
this goes for the directory an image may be in, or the image it self, if either start with the typical
.
rwpspread will fail to read it in.where renaming the file to
test.jpg
works as expected.images within directorys such as
.config
are similarly inaccessible.happy to close if another distro cant replicate and I'll take a better look at fixing it myself.
built from main using the flake for
nix build
, getting versionrwpspread 0.2.1-1
can't see how this would relate to how its built with nix specifically but worth mentioning regardless.
The text was updated successfully, but these errors were encountered: