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

Actions not working (very specific case with MSIX, etc.) #74

Open
Pololot64 opened this issue Aug 8, 2023 · 2 comments
Open

Actions not working (very specific case with MSIX, etc.) #74

Pololot64 opened this issue Aug 8, 2023 · 2 comments

Comments

@Pololot64
Copy link

Hello, this is a very specific question as most people do not deploy python programs onto the Microsoft Store.

Here is what I am trying to do. Most of the details can be ignored:
Packaged .py to an exe with nuitka or pyinstaller. Actions work with a custom aumid I make.

However, when I then bundle my exe using MSIX, the program runs in a sandboxed environment and is required to have the aumid of the Windows App Package. I hardcoded this in and my actions show up on the toasts correctly but I am unable to receive any actions.

I think this has something to do with the solution but I am not sure: https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/send-local-toast?tabs=desktop-msix#step-3-handling-activation

Of course this is not an issue with this library at all. I am just looking for any suggestions or pieces of wisdom you may have :).

@DatGuy1
Copy link
Owner

DatGuy1 commented Aug 11, 2023

I believe the link is for activating the toast after its relegation to the action center (#12).

the program runs in a sandboxed environment and is required to have the aumid of the Windows App Package

You /should/ still be able to provide a different AUMID. Does the default cmd one also not work?

@Pololot64
Copy link
Author

It does not unfortunately. I did a lot of research into it, and it seems that windows has the option of "re-routing" the notification actions using com. I found a way around it which is not ideal (by removing notification specific code from my MSIX app manifest for anyone who finds this later) but the real solution would be to implement this link https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/send-local-toast-desktop-cpp-wrl in c++ and then load that into Python. Unfortunately that is out of my area of expertise so I am currently sticking with my workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants