From frioux at gmail.com Wed Sep 7 04:39:44 2016 From: frioux at gmail.com (fREW Schmidt) Date: Tue, 6 Sep 2016 21:39:44 -0700 Subject: Custom URL Schemata? Message-ID: <20160907043943.ldhb72r3xgka4sai@zfp> Hey all, I'm trying to make a few custom url schemes for personal links to myself, here is, as far as I know, a complete summary of what I've tried: $ cat install-xdg #!/bin/dash xdg-mime install ./xdg/frew-test.desktop xdg-mime default frew-test.desktop x-scheme-handler/email if [ $(xdg-mime query default x-scheme-handler/email) = "frew-test.desktop" ]; then echo "IT WORKED!" fi $ cat ./xdg/frew-test.desktop [Desktop Entry] Name=Mutt-id GenericName=Email Viewer Comment=View emailz TryExec=/home/frew/bin/email-handler Exec= TryExec=/home/frew/bin/email-handler %u Terminal=true Type=Application Icon=gvim Categories=Utility;TextEditor; StartupNotify=true MimeType=x-scheme-handler/email; $ cat ~/bin/email-handler #!/bin/dash echo $1 $ ./install-xdg IT WORKED! When I run `xdg-open email://foo`, instead of echoing foo (or maybe email://foo) it always runs chrome. What should I do? Are there logs I could look at? -- fREW Schmidt https://blog.afoolishmanifesto.com