Skip to main content
Known Participant
September 2, 2022
Answered

How to get user's home folder in Lua plugin

  • September 2, 2022
  • 1 reply
  • 504 views

Hi all, I want write plugin that read metadata from catalog and export as text file.

I want to put exported files on user's home, but I can not find method described to obtain users home 

on API documents.

Any suggestions are welcome.

This topic has been closed for replies.
Correct answer johnrellis

LrPathUtils.standardizePath( '~' ) works on Mac but not Windows.  Instead, use LrPathUtils.getStandardFilePath ("home").

1 reply

Inspiring
September 2, 2022

LrPathUtils.standardizePath( '~' )

 

should do the job for you.

johnrellis
johnrellisCorrect answer
Legend
September 2, 2022

LrPathUtils.standardizePath( '~' ) works on Mac but not Windows.  Instead, use LrPathUtils.getStandardFilePath ("home").