MarvNC / StampNyaa

A simple desktop app for downloading and using LINE stickers.
53 stars 2 forks source link

Clicking on a sticker pulls up the Accessibility System Settings (macOS) #56

Open Crystallized21 opened 1 year ago

Crystallized21 commented 1 year ago

Clicking a sticker pulls up system settings to change Accessibility settings. Even though the option is already toggled on. Maybe change the function to copy the image instead of injecting it into Discord?

https://github.com/MarvNC/StampNyaa/assets/58403578/5d7a18b2-e2ee-4a9b-a56c-326b1b18fc00

MarvNC commented 1 year ago

It does copy the image and pastes onto the previous window. Does this happen every time? In your recording there doesn't seem to be any window open before StampNyaa so it doesn't seem to be a bug exactly.

MarvNC commented 1 year ago

I added a notice in the readme for Mac users. chrome_MarvNCStampNyaa_A_simple_desktop_app_for_downloadi_2023-07-13_12-52-35

Crystallized21 commented 1 year ago

It does copy the image and pastes onto the previous window. Does this happen every time? In your recording there doesn't seem to be any window open before StampNyaa so it doesn't seem to be a bug exactly.

Discord is opened at that time, however even though the accessibility settings is turned on, it still redirects me to the system settings page.

Does this happen every time?

Forgot to clarify, but yes it happens every time. I can’t paste the sticker, since it takes me back the settings page.

Tried to turn it off and back on, still had no effect.

MarvNC commented 1 year ago

Unless Discord is cropped out in the recording, it doesn't seem to be active before StampNyaa.

What StampNyaa does is:

There isn't an easy way to actually focus on a separate window, so StampNyaa just does this method which makes the most sense imo. I don't know why the accessibility settings show up like that.

The intended use case is:

If you use it this way, does it work?

Crystallized21 commented 1 year ago
  • Copy the sticker to the clipboard
  • Hide the application as this should focus on the previously focused window
  • Paste ctrl + v

Test it out again, but it indeed copys the sticker. But still brings up the System Settings Application, even if restarted. I've upgraded to macOS Sonoma Developer Beta 3 so I think thats why?

https://github.com/MarvNC/StampNyaa/assets/58403578/6a494c21-c5e5-4e57-bf15-f475b0054bea

MarvNC commented 1 year ago

Ohh that's really strange, thanks for demonstrating. What if you use a hotkey instead of clicking the dock icon?

I haven't done anything to specify accessibility settings or anything, I think it's just automatically done because the app tries to press command v. From this video my best possible guess is that using the dock icon unfocuses discord somehow in a different way than using the hotkey would. If it still doesn't work after the next update I might have to add a setting to disable the command v step.

Crystallized21 commented 1 year ago

What if you use a hotkey instead of clicking the dock icon?

Neither the Hotkey works. My best guess is that macOS Sonoma Dev Beta 3 fiddled with something, causing it not work as expected. Before then, it worked.

MarvNC commented 1 year ago

Oh okay, thanks for the clarification. Will keep an eye out but I don't know anything I can do unfortunately. For what it's worth, I have a friend using an older version and it seems to work fine (excluding the other issues you reported which are fixed now).