Permalink
fahad-israr
Create ide-handler
117f2ec
Mar 10, 2020
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
starfish/adding_url_handlers_to_operating_system/linux/ide-handler
Find file
Copy path
| #!/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 |