Commit fdb5ad9
committed
meld/melddoc.py: Fix windows external open (#354)
When in a Meld folder comparison in Windows, a file or subfolder can be
opened externally with default windows application (e.g. explorer for
folders, previously selected application for files, or the windows
file open option popup for unspecified types).
Right-mouse button click and "Open externally" should produce this
behaviour, however currently folders with spaces in the path produce
unexpected behaviour such as command line windows opening.
Changing the relevant system call from subprocess.Popen() to the
windows-specific os.startfile() fixes this behaviour and handles paths
with spaces in them in the expected way.
https://gitlab.gnome.org/GNOME/meld/-/issues/3541 parent 1c51517 commit fdb5ad9
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
0 commit comments