Skip to content
Permalink
Browse files

Create ide-handler

  • Loading branch information
fahad-israr committed Mar 10, 2020
1 parent 76eea4b commit 117f2ec95dfb49e04fa382ff0a09fbfa5eb4e16e
Showing with 13 additions and 0 deletions.
  1. +13 −0 adding_url_handlers_to_operating_system/linux/ide-handler
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Delete first 22 characters (ide://open?url=file://)
request=${1:22}

# Decode URL
request=$(echo $request | echo -e "$(sed 's/+/ /g; s/%/\\x/g')")

# Replace &line= with :
request=${request/&line=/:}

# Launch Starfish
/usr/bin/starfish -g -r $request

0 comments on commit 117f2ec

Please sign in to comment.
You can’t perform that action at this time.