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

Open
jackwilsdon opened this issue Oct 18, 2024 · 2 comments
Open

Detect Microsoft Store installation and display warning #5467

jackwilsdon opened this issue Oct 18, 2024 · 2 comments
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

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

No branches or pull requests

3 participants