Skip navigation
muhmu
Currently Being Moderated

How to use LrShutdownPlugin

Jun 20, 2010 1:56 AM

My plugin spawns a background process, which needs to be shutdown when Lightroom is exited or the plugin is disabled.

 

SDK manual states that in Info.lua, I can specify a function using LrShutdownPlugin key.  I am a bit confused with this - Info.lua does not allow require/import, so I can't really do anything useful with this?  Ideally, I'd like to be able to make a HTTP request when Lightroom is exiting.

 

Same goes for LrEnablePlugin/LrDisablePlugin functions, I don't even know how to print a line into log so I don't know if these actually were called or not...

 
Replies
  • Currently Being Moderated
    Jun 22, 2010 1:38 AM   in reply to muhmu

    I see your point. Say, I wonder if its a documentation error - did you try specifying a lua filename string instead, like LrInitPlugin?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2010 12:40 PM   in reply to muhmu

    I think we need Chet Drarvik to straighten this out (Eric Scouten's replacement).

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2010 1:07 AM   in reply to muhmu

    Muhmu,

     

    Thanks for the update. So for the shutdown, you specify a lua file (like for LrInitPlugin), not a function (like it says in the sdk3 guide document) - right?  If so, I think a bug-report against the document is in order.

     

    I'm looking forward to the release of your plugin...

     

    PS - Have you tried my latest (DevAdjust)?

     

    Rob

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points