Mailing List Archive

[issue45901] store app file type ignores command-line arguments
New submission from Eryk Sun <eryksun@gmail.com>:

The file association for the store app uses '"%1"' for the command-line parameters. This ignores the rest of the command-line arguments, i.e. '%*'. In PC/layout/support/appxmanifest.py, the add_application() calls that add the "Python" and "PythonW" applications should be changed to use the parameters string '"%1" %*' in the file types.

----------
components: Installation, Windows
messages: 407029
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: store app file type ignores command-line arguments
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Change by Steve Dower <steve.dower@python.org>:


----------
keywords: +patch
pull_requests: +28034
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29799

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Steve Dower <steve.dower@python.org> added the comment:

For future reference, in case someone stumbles over this issue, here's how I tested this change:

* set $env:IncludeUWP="true"
* did a regular PCbuild/build.bat
* generated a Store layout with "./python.bat PC/layout --preset-appx --copy ./out"
* mock-installed it with "Add-AppxPackage -Register ./out/appxmanifest.xml"
* used "Default Programs" to change my default to the new installed Python 3.11
* put "import sys; print(sys.argv); input()" into test.py
* ran "test.py arg1 arg2" and inspected the output

----------

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Steve Dower <steve.dower@python.org> added the comment:


New changeset 4841e694ee1686f8c933ddfcb8c854915867ce17 by Steve Dower in branch 'main':
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)
https://github.com/python/cpython/commit/4841e694ee1686f8c933ddfcb8c854915867ce17


----------

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>:


----------
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +28039
pull_request: https://github.com/python/cpython/pull/29807

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>:


----------
pull_requests: +28040
pull_request: https://github.com/python/cpython/pull/29808

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment:


New changeset 3dcbe01dc5236fb77d8c0133fb7e6bdd0754768a by Miss Islington (bot) in branch '3.10':
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)
https://github.com/python/cpython/commit/3dcbe01dc5236fb77d8c0133fb7e6bdd0754768a


----------

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Steve Dower <steve.dower@python.org> added the comment:


New changeset 133fb267f437f9bd568738d0e0e59e574fc82b02 by Miss Islington (bot) in branch '3.9':
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)
https://github.com/python/cpython/commit/133fb267f437f9bd568738d0e0e59e574fc82b02


----------

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue45901] store app file type ignores command-line arguments [ In reply to ]
Change by Steve Dower <steve.dower@python.org>:


----------
assignee: -> steve.dower
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue45901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com