• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

plugin automatic update

Community Beginner ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

Hi all,

I have a plugin where I perform automatic update to allow users to always have the last version.
My problem is that when I download the new version, Lightroom load the new version of current files but if I add new files, it doesn't load.
The result is that there is errors if user don't restart lightroom as it try to use the unloaded files (the new one).

Is there a way to perform it nicely. I was thinking that until we don't hit the reload plugin button or restart Lightroom, it will not use the new version but the previous one...

Any idea?
Thank you
Cheers

TOPICS
SDK

Views

432

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

I'm not sure there's a great solution. The documentation for many plugins inform the user to restart LR after installing a new version.,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

Hi John,


Yes it seems to be a real problem. But as we are doing it automatically, we would like to avoid popup in a middle of a work to say to restart Lightroom..

I think that I will perform the update during the shutdown of Lightroom, there is a function in the sdk to do something just before the shut down of Lightroom.
What do you think?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

That might work. But beware that, according to the documentation, "The LrDialogs namespace is not available in the environment of the shutdown task."  So if any errors occur during the update, there won't be an easy way to report them to the user.  You'd probably have to write a log file and then check for the presence of the log file when the plugin starts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

LATEST

Thank you for the warning.  🙂

I'll check that and see. But it should alright as I can download the new version before and then just change the old one by the new one during the update. Like that I'll minimize the possibility of errors.

I'll let you know!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines