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

Detect Microsoft Store installation and display warning #5467

Closed
jackwilsdon opened this issue Oct 18, 2024 · 2 comments · Fixed by #5470
Closed

Detect Microsoft Store installation and display warning #5467

jackwilsdon opened this issue Oct 18, 2024 · 2 comments · Fixed by #5470
Labels
feature features we would like to implement

Comments

@jackwilsdon
Copy link
Member

Proposed solution

We should detect whether Python is installed via the Microsoft Store and issue a warning if so. The warning should say something along the following lines:

Warning: your Python installation is from the Microsoft Store which restricts access to AppData. Please follow https://beets.readthedocs.io/en/stable/guides/main.html#installing-on-windows.

Objective

Microsoft Store installations of Python seem to be sandboxed which causes confusion (see #5466).

Goals

Avoid confusion when using Microsoft Store installation.

@jackwilsdon jackwilsdon added the feature features we would like to implement label Oct 18, 2024
@jackwilsdon jackwilsdon self-assigned this Oct 18, 2024
@snejus
Copy link
Member

snejus commented Oct 18, 2024

To start with, we could potentially document this somewhere in the Windows / Installation docs?

@arogl
Copy link
Contributor

arogl commented Oct 18, 2024

with this

$ python
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.exec_prefix

and detecting a path within this directory C:\Users\username\AppData\Local\Microsoft\WindowsApps\ we should be able to stop beets execution and advise user about options.

Will need some thoughts about config options and editing via beet config -e

@jackwilsdon jackwilsdon removed their assignment Oct 19, 2024
@snejus snejus linked a pull request Nov 22, 2024 that will close this issue
3 tasks
snejus added a commit that referenced this issue Nov 22, 2024
Quick fix for #5467.

Checks if the path for python is under the windows store folder then
error and point the user to the beets
[documentation](https://beets.readthedocs.io/en/stable/guides/main.html).

Happy for feedback to improve, but thought it best to exit as early as
possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature features we would like to implement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants