-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
No backgrounds shown with system backgrounds dir has subdirectories #246
Comments
I almost want to make a regression test for this, but I don't see any status quo of regression tests in elementary projects. |
I looked into bisecting this and realized there's some scenarios I need to test to make sure I could exactly reproduce this. These are the scenarios I tested and their results:
✔️ == success, I see wallpapers in the view (note I am now testing right off that branch and on master) To illustrate, this means permutations of the following filesystem layouts don't work
|
Obviously the bug lies in https://github.com/elementary/switchboard-plug-pantheon-shell/blob/master/src/Views/Wallpaper.vala#L327, I just need to add some debug output so I can see what conditional logic it's jumping into in the three failing scenarios. |
This reverts commit 5100e4f. Fixes #100293 Though it's only a workaround for now. See elementary/switchboard-plug-pantheon-shell#246 (comment) We trigger the broken scenario where we have two subdirectories. Reverting that commit undoes this.
This reverts commit 5100e4f. Fixes #100293 Though it's only a workaround for now. See elementary/switchboard-plug-pantheon-shell#246 (comment) We trigger the broken scenario where we have two subdirectories. Reverting that commit undoes this. (cherry picked from commit ace69f7)
Prerequisites
I recalled #157 but that issue was fixed and there's been no
new_for_path
->new_for_uri
Describe the bug
This has been reported on NixOS NixOS/nixpkgs#100293.
If there's subdirectories at the system backgrounds directory no wallpapers are loaded from there.
The layout of the system backgrounds directory would be like
From the output there seems to be nothing of importance.
To Reproduce
Steps to reproduce the behavior:
$XDG_DATA_DIRS/share/backgrounds
have a subdirectory with pictures in itI actually did this with no local backgrounds btw.
Expected behavior
It doesn't matter what directory structure at the backgrounds directory is, everything that is an image is loaded.
Screenshots or screen recordings
Platform Information
OS: NixOS
OS Version: NixOS 20.09 and 21.03-pre-git
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: