Skip to content

URL opening multiple times #5

Description

@crater2150

I recently installed another browser and set it as default, since then tmux-url-select opens each url in both browsers. Opening an URL from somewhere else or directly using xdg-open does not show that behaviour, it only opens in the one I set as default.

I found a workaround, I changed COMMAND from xdg-open to a script with the following content:

#!/bin/bash
{
  xdg-open "$@"
} &>/dev/null

Notably, redirecting the output is required. If I don't, tmux-url-select will again open the link in both browsers. I redirected to files to check, if there are any errors in the output, but stdout was empty and stderr contained "09:56:49 INFO: Opening in existing instance". So a nonempty stderr seems to cause the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions