The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

define default application for opening an application URL

asked 2014-03-05 10:51:03 +0000

duub gravatar image

updated 2014-03-05 11:19:05 +0000

Adaephon gravatar image

Hello, I'm trying to configure my OS to open this kind of URLs: sparkleshare://addProject/https://compartir.cooperativa.cat/coopfunding.xml

If I try to use gnome shell and chromium works by default, with firefox i fixed with gconftool-2 (solution found here: http://people.w3.org/~dom/archives/20...)

but when I switch to i3 stops working in both browsers

edit retag flag offensive close merge delete

Comments

thanks adaephon for the update :)

duub gravatar imageduub ( 2014-03-05 19:02:15 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-06 02:34:42 +0000

duub gravatar image

Finally I've found how to solve it, I don't think it's the right way to do it but... I've created a script called sparkleshare-web in /usr/bin

#!/usr/bin/env bash

 invite=`date -u +%N`
 open=`echo $1 | sed "s/sparkleshare:\/\/addProject\///"`
 curl --insecure --output ~/SparkleShare/$invite.xml $open

and then assigned this script as the default app of this kind of urls in firefox(preferences->aplications)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-05 10:51:03 +0000

Seen: 357 times

Last updated: Mar 06 '14