#12560: fig2pdftex.py lacks a shebang

Dr Eberhard W Lisse el at lisse.NA
Sat Jun 25 17:25:17 UTC 2022


Just a thought from a non-developer:

why not make this happen at Tools -> Reconfigure ?

el

On 2022-06-25 18:32 , LyX Ticket Tracker wrote:
> #12560: fig2pdftex.py lacks a shebang
> ------------------------+--------------------------
>   Reporter:  ondohotola  |       Owner:  lasgouttes
>       Type:  defect      |      Status:  new
>   Priority:  normal      |   Milestone:  2.3.x
> Component:  general     |     Version:  unspecified
>   Severity:  normal      |  Resolution:
>   Keywords:              |
> ------------------------+--------------------------
> 
> Comment (by jamatos):
> 
>   I was the one who placed those statements there. :-)
> 
>   But I did it purely for developing purposes. In particular in the case
>   that Eberhard refers to - lyx2lyx - testing helps if we call it directly
>   and that is why the shebang is useful there.
> 
>   So we have two issues here:
>   1) this is useful if the script will be called independently of lyx;
>   2) this is a power user feature because usually those scripts are usually
>   used directly by lyx.
> 
>   So the shebang does not hurt lyx usage but in this case to make it
>   effective we also need to set the executable bit property for the file.
>   `chmod +x fig2pdftex.py`
> 
>   Is it worth? Probably not IMHO but I am open to other suggestions. :-)
> 

-- 
Dr. Eberhard W. Lisse   \         /       Obstetrician & Gynaecologist
el at lisse.NA             / *      |  Telephone: +264 81 124 6733 (cell)
PO Box 8421 Bachbrecht  \      /  If this email is signed with GPG/PGP
10007, Namibia           ;____/  Sect 20 of Act No 4 of 2019 may apply


More information about the lyx-devel mailing list