issue with custom web link action

Home Forums cherrytree issue with custom web link action

This topic contains 3 replies, has 2 voices, and was last updated by  giuspen 1 month, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #124141

    FrizzleFry
    Member

    I have been noticing a problem with using a custom web link clicked action for some time. If the browser is not running when a web link is clicked in CherryTree, the browser is started as expected but CT remains unresponsive with a spinner cursor until the browser is closed. This unresponsive behavior does not happen if the browser was already started before the web link is clicked in CT. I have tried this with two different browsers: Slimjet and Pale Moon. It also does not happen when not using the custom web link clicked action. If the system default browser is not running when clicking a web link in CT, the browser is started and CT remains responsive.

    • This topic was modified 1 month, 2 weeks ago by  FrizzleFry.
    #124145

    giuspen
    Moderator

    In linux if you put an & at the end of the command (after a space) it should decouple from the caller, also in windows there should be something equivalent

    • This reply was modified 1 month, 2 weeks ago by  giuspen.
    #124148

    FrizzleFry
    Member

    Ok. The ‘&’ did not help in Windows but that gave me the idea of using ‘start’ at the beginning of the command line and that seems to solve the problem.

    start D:\tools\Slimjet\slimjet.exe %s

    So I guess you are spawning a command line shell to execute the custom web link action. Why not execute it so that it wont tie up the main window at all?

    #124151

    giuspen
    Moderator

    I use python subprocess, don’t know if there’s an option to decouple I’ll check

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.