-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add Scaling Feature on Windows #87
Conversation
My bad, I completely forgot to run the tests. I will take a look at them tomorrow and fix the issues. |
@beyluta https://github.com/sindresorhus/win-wallpaper/releases/tag/v3.0.0 Would you be able to also add support for ARM64? Could be a separate pull request. |
I'll take a look at it as soon as I can. |
Note: I've been having some issues running the new binary on my device. I am unsure why, but sometimes the backgrounds will fail to be set (they give the error 0x8007007A... but other times, the background does not set and I get no errors). I googled the issue and it seems it might be something to do with my machine. Although I am unsure what exactly. I also got other error codes but I sadly did not save them and have been unable to reproduce ever since. |
Do you plan to do it in this pull request or a different one? |
It may be related to what this is fixing: sindresorhus/windows-wallpaper#11 |
Different PR for ARM64 support. |
Can you update the binary: https://github.com/sindresorhus/win-wallpaper/releases/tag/v3.0.1 |
I am still having the same issue. I am using the same images as provided in the root of the directory.
Here is a screenshot of my cmd Running the same command multiple times will eventually succeed. However this time the Wallpaper isn't being set at all. |
// @tangdaoyuan @a-isaiahharvey Any ideas? |
Can you try running the program as administrator? |
Had no effect. Same symptoms. Win 11 Version 22H2 (OS Build 22621.1413) |
Would be nice to make it work for non-admin. But even if not, it should at least show a user-friendly error message instead of crashing. |
I'll see what I can do. Would the following error message suffice? I can display something along these lines. The issue would still exist with the binary of course. Maybe someone is working to also display something similar? |
I meant that the binary should do this, not this package. |
@beyluta Can you try running this binary? https://github.com/a-isaiahharvey/WinWallpaper-CPP/releases/tag/1.0.0 For me I found it kind of strange that when I tried implementing nearly the exact same program in C++ I didn't get have any errors on my side nor had to run as administrator. |
I tried running the binary but the set command wouldn't work for some reason. I used multiple pictures and formats but it just wouldn't set. I also tried giving the binary (and the cmd) admin privileges. See the image below (Same result using CMD or PowerShell). I never got any error codes either. |
Hmm. Try this update. I added more error handling and better support for relative file paths |
Whatever you did, it seems to have fixed the issue, now the backgrounds are being set. Also works without admin privileges. Scale feature also works nicely. |
That's awesome! Now the only thing for me to do is figure out if it's possible to do the same thing in Rust without using admin privileges. |
@a-isaiahharvey Were you able to look into this? |
@sindresorhus I tried to fix it from my end and it works. I would still need to verify that "The data area passed to a system call is too small." doesn't happen on another Windows computer to be sure though |
Could you compile a binary from sindresorhus/windows-wallpaper#13 that @beyluta can test? |
Sure. Here you go: |
Worked like a charm on my machine :) I'll update the pr as soon as the new version of the binary is released. |
Awesome. Thanks for working on this, both of you 👍 |
@beyluta Are you up for doing the ARM64 PR now too? If not, I will do a new release right away. |
You should probably do a new release for now. I'm busy as of recent. I will look into it when I get some more free time. |
Co-authored-by: Sindre Sorhus <[email protected]>
--scale
flag.#55 Partial fix for this issue. They later requested the feature for both Windows & Linux
#5 Potential fix for this issue. I don't have multiple monitors, but the last comment mentioned it having to do with the 'tile' property #5 (comment)