You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched open reports and couldn't find a duplicate
What happened?
Double-clicking a file associated with the Spyder application does not get opened if the file path or name contains spaces.
The correct behavior is exhibited if the file name and path do not contain spaces.
Conda Info
active environment : base
active env location : C:\Users\rclary\AppData\Local\spyder-6
shell level : 1
user config file : C:\Users\rclary\.condarc
populated config files : C:\Users\rclary\AppData\Local\spyder-6\.condarc
C:\Users\rclary\.condarc
conda version : 24.5.0
conda-build version : not installed
python version : 3.11.9.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=24.5.0=0
__win=0=0
base environment : C:\Users\rclary\AppData\Local\spyder-6 (writable)
conda av data dir : C:\Users\rclary\AppData\Local\spyder-6\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/label/spyder_rc/win-64
https://conda.anaconda.org/conda-forge/label/spyder_rc/noarch
https://conda.anaconda.org/conda-forge/label/spyder_dev/win-64
https://conda.anaconda.org/conda-forge/label/spyder_dev/noarch
https://conda.anaconda.org/conda-forge/label/spyder_kernels_rc/win-64
https://conda.anaconda.org/conda-forge/label/spyder_kernels_rc/noarch
https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
package cache : C:\Users\rclary\AppData\Local\spyder-6\pkgs
C:\Users\rclary\.conda\pkgs
C:\Users\rclary\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\rclary\.conda\envs
C:\Users\rclary\AppData\Local\spyder-6\envs
C:\Users\rclary\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/24.5.0 requests/2.32.3 CPython/3.11.9 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.8
administrator : False
netrc file : None
offline mode : False
If I modify the registry command to %* "%1", then double-clicking files with spaces will open in Spyder.
It seems that %1 is appended by menuinst and this must be double-quoted in order to work.
I've tried "%*" and %1 without success, so it seems %* is ineffective (quoted or not), but "%1" must be present in order to work.
I wonder if line 169 can be modified to read if " " in s or "/" in s or "%" in s:.
I've tested this with my application and it does remedy my issue, but I don't know if there are adverse ramifications for other applications...
Checklist
What happened?
Double-clicking a file associated with the Spyder application does not get opened if the file path or name contains spaces.
The correct behavior is exhibited if the file name and path do not contain spaces.
Conda Info
Conda Config
Conda list
Additional Context
The menu json file contains the directive
When the file associations are created in the Windows registry, the command appears as
If I modify the registry command to
%* "%1"
, then double-clicking files with spaces will open in Spyder.It seems that
%1
is appended bymenuinst
and this must be double-quoted in order to work.I've tried
"%*"
and%1
without success, so it seems%*
is ineffective (quoted or not), but"%1"
must be present in order to work.See spyder-ide/spyder#22844
The text was updated successfully, but these errors were encountered: