Re: Reconfigure from script

2023-02-25 Thread Richard Kimberly Heck

On 2/20/23 04:10, Steve Litt wrote:

Richard Kimberly Heck said on Sun, 19 Feb 2023 13:35:36 -0500


On 2/18/23 18:11, Mark Livingstone wrote:

Hi People,

I am using LyX 2.3.7 on Mac OS Ventura.

Is it possible to run reconfigure from script in the terminal, if so
how?

Just execute the file configure.py. It will write the relevant files
to the current working directory, so make sure you are where you want
to be when you call it.

Where do you want to be?


Normally, your user directory. But you might have multiple ones of those.



Must you run it as root?


No.

Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Reconfigure from script

2023-02-20 Thread Steve Litt
Richard Kimberly Heck said on Sun, 19 Feb 2023 13:35:36 -0500

>On 2/18/23 18:11, Mark Livingstone wrote:
>> Hi People,
>>
>> I am using LyX 2.3.7 on Mac OS Ventura.
>>
>> Is it possible to run reconfigure from script in the terminal, if so
>> how?  
>
>Just execute the file configure.py. It will write the relevant files
>to the current working directory, so make sure you are where you want
>to be when you call it.

Where do you want to be?

Must you run it as root?

Thanks,

SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Reconfigure from script

2023-02-19 Thread Dr Eberhard W Lisse
if LyX is running you can save all open buffers to disk and then quit by
way of something like (multiple levels of double quotes are required
(on the Mac due to the space in ~/Library/Application Support/Lyx-2.3))

pushd "$(dirname "$(find ~/Library -name .lyxpipe.in -type p)")"
echo "LYXCMD:test:buffer-write-all" > .lyxpipe.in
echo "LYXCMD:test:lyx-quit" > .lyxpipe.in

and then (on the Mac)

/Applications/LyX.app/Contents/Resources/configure.py
osascript -e 'tell application id "org.lyx.lyx" to activate'

or (on Linux, but since I use the Mac it's not tested)

configure.py
lyx &

and on all

popd


greetings, el

On 19/02/2023 20:35, Richard Kimberly Heck wrote:
> On 2/18/23 18:11, Mark Livingstone wrote:
>> Hi People,
>>
>> I am using LyX 2.3.7 on Mac OS Ventura.
>>
>> Is it possible to run reconfigure from script in the terminal, if so
>> how?
> 
> Just execute the file configure.py.  It will write the relevant files
> to the current working directory, so make sure you are where you want
> to be when you call it.
> 
> Riki
> 
> 

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Reconfigure from script

2023-02-19 Thread Richard Kimberly Heck

On 2/18/23 18:11, Mark Livingstone wrote:

Hi People,

I am using LyX 2.3.7 on Mac OS Ventura.

Is it possible to run reconfigure from script in the terminal, if so how?


Just execute the file configure.py. It will write the relevant files to 
the current working directory, so make sure you are where you want to be 
when you call it.


Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users