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

windows-shobjidl example gives no output #3

Open
phanirithvij opened this issue Nov 9, 2019 · 6 comments
Open

windows-shobjidl example gives no output #3

phanirithvij opened this issue Nov 9, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@phanirithvij
Copy link

I tried running your example cargo run --example wallpaper-shobjidl it gave no output.

 cargo run --example wallpaper-shobjidl
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `D:\Projects\fun\experiments\wallpaper-rs\target\debug\examples\wallpaper-shobjidl.exe`

The other one is working cargo run --example wallpaper-user32 which gave the wallpaper path.

@MOZGIII
Copy link
Owner

MOZGIII commented Nov 10, 2019

I'll look into it. There's been quite a lot of turbulence with this project some time ago, and I didn't manage to revisit it yet.

@MOZGIII
Copy link
Owner

MOZGIII commented Nov 10, 2019

Works on my end:

$ cargo run --example  wallpaper-shobjidl
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `C:\Users\MOZGIII\Desktop\wallpaper-rs\target\debug\examples\wallpaper-shobjidl.exe`
C:\Users\MOZGIII\AppData\Local\Temp\bm6yqr.jpg

I wonder what could be causing this. Maybe the Windows API does return an empty result?

@MOZGIII MOZGIII self-assigned this Nov 10, 2019
@MOZGIII MOZGIII added the bug Something isn't working label Nov 10, 2019
@MOZGIII
Copy link
Owner

MOZGIII commented Nov 10, 2019

It might just be the behavior of Windows API. For me both examples work consistently.
Can you try setting the wallpaper via one of the examples and then cargo run --example wallpaper-shobjidl again?

@phanirithvij
Copy link
Author

phanirithvij commented Nov 10, 2019

When using the SlideShow option wallpaper-shobjidl doesn't work.
It works with single images.

@phanirithvij
Copy link
Author

I have a cpp implementation to get the wallpaper using IDesktopWallpaper if that can help you debug if you're able to replicate this issue.
wallpaper.zip

@MOZGIII
Copy link
Owner

MOZGIII commented Nov 10, 2019

Please provide a step-by-step guide to reproduce the issue if you know what's causing 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
Projects
None yet
Development

No branches or pull requests

2 participants