#12560: fig2pdftex.py lacks a shebang
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sat Jun 25 17:56:14 UTC 2022
Le 25/06/2022 à 19:25, Dr Eberhard W Lisse a écrit :
> Just a thought from a non-developer:
>
> why not make this happen at Tools -> Reconfigure ?
Probably because the user cannot write in the LyX system library
directory (on linux and macOS, at least).
JMarc
PS: please keep the discussion in the bug tracker
>
> 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. :-)
>>
>
More information about the lyx-devel
mailing list