ports/misc/shared-mime-info/files/patch-data_freedesktop.org.xml.in
Gleb Popov c3ddb09acd misc/shared-mime-info: Fix python shebang patch.
Sponsored by:	Serenity Cybersecurity, LLC
2024-06-30 17:52:42 +03:00

10 lines
541 B
XML

--- data/freedesktop.org.xml.in.orig 2022-03-27 10:19:00 UTC
+++ data/freedesktop.org.xml.in
@@ -6638,6 +6638,7 @@ -->
<comment>Python 3 script</comment>
<sub-class-of type='text/x-python'/>
<magic priority="60"><!-- higher priority than text/x-python -->
+ <match type="string" value="#!%%PYTHON_CMD%%" offset="0" />
<match type="string" value="#!/bin/python3" offset="0"/>
<match type="string" value="#! /bin/python3" offset="0"/>
<match type="string" value='eval \"exec /bin/python3' offset="0"/>