chmln / handlr

A better xdg-utils
MIT License
616 stars 24 forks source link

Unable to set x-scheme-handler #4

Closed asm0dey closed 4 years ago

asm0dey commented 4 years ago

Please consider following example:

❯ handlr get x-scheme-handler/mailto
org.kde.kmail2.desktop
❯ handlr set x-scheme-handler/mailto /home/finkel/Desktop/mailto.desktop
error: Invalid value for '<handler>': no handler defined for this mime/extension

Here we expect that if we can query scheme handler — we should be able to set it too. But it unexpectedly prints error (with some strange description).

chmln commented 4 years ago

Hi @asm0dey

You need to place that mailto.desktop file in the /home/finkel/.local/share/applications folder, then run

handlr set x-scheme-handler/mailto mailto.desktop

For reference, you can read https://wiki.archlinux.org/index.php/Desktop_entries#Application_entry

asm0dey commented 4 years ago

That works, thank you!