https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15710

--- Comment #1 from Tomasz Mon <deso...@gmail.com> ---
(In reply to Peter Wu from comment #0)
> Use of AssocQueryString to lookup the program associated with an extension
> could work, but I am worried that on systems without Python installed (or a
> different default), it could end up opening a text editor for example. So
> some kind of whitelist would be needed.

If you don't have Python installed or if it's not associated to execute .py
files, then the .py won't appear in PATHEXT.

> In that case, what do you think about special casing Python support? If the
> extension is .py, lookup the Python interpreter (maybe in PATH for
> simplicity?) and use it. This does mean that if the user wants to use Lua,
> Perl or any other scripting language, then they would have to create a
> similar patch for Wireshark to support it out-of-the-box without a batch
> script.

I don't like the special case idea. The PATHEXT exists for a reason, we just
need to use it.

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to