fix(macOS): handle wallpaper detection without GUI - #2559
Conversation
What do you mean by Not sure about the headless macOS either. The CI runner is a headless environment IMO and clearly has no real displays, but it can also have a virtual display. https://github.com/fastfetch-cli/fastfetch/actions/runs/33584489343/job/100105891321 |
|
This is probably due to the interface on older versions of macOS not handling this case properly. fastfetch -s Wallpaper |
Also moves NSWorkspace method to the last method to try Fixes #2559
|
Please test 0286209 |
On headless macOS, querying NSScreen connects to WindowServer and may abort. Check for a GUI session first, while keeping the plist and SQLite fallbacks available.