Skip to main content
Known Participant
Jan 31, 2024 9:16 AM UTC
Needs More Info

P: URLHandler of plugins do net get called if lightroom classic is not yet running

When clicking on a lightroom://plugin.identifier/link when lightroom classic is running, it will call the registered url handler of plugin.identifier. But when lightroom classic is not running and one clicks on the link, lightroom will start up, but not call the url handler.

 

How to reproduce:

 

Create a simple plugin:
Info.lua:

 

-- lightroom://com.example.urlhandler/test
return {
    LrPluginName = "URL Handler",
    VERSION = {
        major = 1,
        minor = 0,
        revision = 0,
        build = "1"
    },
    LrSdkVersion = 11.0,
    platforms = {"Windows", "Mac"},
    LrToolkitIdentifier = "com.example.urlhandler",
    LrForceInitPlugin = true,
    URLHandler = "URLHandler.lua"
}

 

 

URLHandler.lua:

 

local LrDialogs = import "LrDialogs"

return {
    URLHandler = function(url)
        LrDialogs.message("URL Handler", tostring(url), "info")
    end
}

 

 

Make a simple index.html with

 

 

<a href="lightroom://com.example.urlhandler/test">test</a>

 

 

Open in a browser and click the link.

 

Results:

 

  1.  if lightroom classic is currently running, it will call the plugin handler and correctly show 
  2.  if lightroom classic is not currently running, it will start lightroom classic correctly, but not call the url handler.

 

Tested on Windows and MacOS with lightroom versions from 11 - 13.

 

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Rikk Flohr-Retired
Adobe Employee
Feb 20, 2024 1:52 PM UTC

The team has opened a ticket to review this behavior. 

Translate
Rikk Flohr: Adobe Photography Org
johnrellis
Legend
Jan 31, 2024 10:39 PM UTC

@Rikk Flohr: Photography, I observe the same problem with my plugins, e.g. the spreadsheets exported by Any Filter > Sort containing lightroom: hyperlinks.

Translate