Stephan Witt wrote:

> ATM, the directory LyX is using is "$HOME/Library/Application
> Support/PACKAGE“
>
> PACKAGE is LyX-2.2 on Mac when version suffix „-2.2“ is used.

Looks like QtApplication does something different here than 
QtCoreApplication.

>> Stephan, does it work? Note that this is not a regression (2.1 has the
>> same code), so it is not really urgent. If we apply it, we need to be
>> aware that the user directory would change for LyX compared to earlier
>> releases.
> 
> IMO, the bug is to use QStandardPaths::DataLocation or
> QStandardPaths::AppDataLocation. Instead the
> QStandardPaths::GenericDataLocation should be used here. The return value
> is "$HOME/Library/Application Support“ on Mac with Qt5 (now?).
> 
> Surprisingly the return value of QStandardPaths::DataLocation is the same
> for LyX and "$HOME/Library/Application Support/LyX/tex2lyx“ for tex2lyx.

This is indeed surprising, and my guess would be that it is 
"$HOME/Library/Application Support/LyX/LyX“ for LyX started in command line 
mode, since in this case the same ConsoleApplicatioin is used as for 
tex2lyx.

> The attached path corrects this. Ok to commit?

Depends on whether we want to continue to use the current location (then 
yes), or whether we want to change to the "organization/app" scheme below 
"Application Support", as qt suggests. Then we'd need to do something else, 
but you can judge this much better than any other developer, I believe.


Georg

Reply via email to