chmln/handlr

Cancelling selection for `https://` opens Brave web browser anyway

nazarewk opened this issue · 1 comments

I have trouble cancelling selection for handlr open/get. Maybe somebody here could help me achieve the expected behavior?

Configuration

selector is wofi --dmenu --insensitive --normal-window --prompt='Open With: '

kdn@krul ~/d/g/n/nix-configs (main)> handlr list --all | grep -i fire
│ application/x-extension-htm      │ firefox.desktop, brave-browser.desktop │
│ application/x-extension-html     │ firefox.desktop, brave-browser.desktop │
│ application/x-extension-shtml    │ firefox.desktop, brave-browser.desktop │
│ application/x-extension-xht      │ firefox.desktop, brave-browser.desktop │
│ application/x-extension-xhtml    │ firefox.desktop, brave-browser.desktop │
│ application/xhtml+xml            │ firefox.desktop, brave-browser.desktop │
│ application/xhtml_xml            │ firefox.desktop, brave-browser.desktop │
│ text/html                        │ firefox.desktop, brave-browser.desktop │
│ text/xml                         │ firefox.desktop, brave-browser.desktop │
│ x-scheme-handler/chrome          │ firefox.desktop, brave-browser.desktop │
│ x-scheme-handler/http            │ firefox.desktop, brave-browser.desktop │
│ x-scheme-handler/https           │ firefox.desktop, brave-browser.desktop │
│ application/vnd.mozilla.xul+xml       │ firefox.desktop                      │
│ application/xhtml+xml                 │ brave-browser.desktop, firefox.desk+ │
│ text/html                             │ brave-browser.desktop, firefox.desk+ │
│ text/xml                              │ brave-browser.desktop, firefox.desk+ │
│ x-scheme-handler/http                 │ brave-browser.desktop, firefox.desk+ │
│ x-scheme-handler/https                │ brave-browser.desktop, firefox.desk+ │

Expected

handlr get x-scheme-handler/https doesn't print anything when i press Esc in wofi to abort selection.

Actual

handlr get x-scheme-handler/https still prints brave-browser.desktop after aborting wofi

seems like it does not respect cancellation of selector, goes straight to added_associations and then system_apps