# Gavin Andresen # 2010-09-20 12:41:33 # https://bitcointalk.org/index.php?topic=1056.msg13445#msg13445 RE: hippich XML/JSON: @p{brk} XML ain't gonna happen, and I think JSON is overkill for this. Using the same format as the bitcoin.conf file is the right answer, I think (easy to implement, human-readable, comments allowed in the file, easy to extend as necessary). That's what I mocked up at skypaint.com. @p{par} RE: nimnul @s{(link)}:.../ @p{brk} If you've never installed bitcoin, or bitcoin isn't running already, you get an unhelpful error message. One advantage of a "payment request file" is many users will understand that you need something called "Bitcoin" to open a "Bitcoin Payment Request" file. @p{par} RE: mizerydearia Linux support: @p{brk} In my research I briefly an across a reference to a KDE startup file to associate mime types with applications, so I @p{(it}think@p{it)} it would work nicely cross-platform if you've already installed bitcoin. (UPDATE: cross-desktop @p{(link}spec here@p{link)}) @p{par} RE: nimnul clipboard monitoring: @p{brk} Seems to me that's a feature for geeks, because only geeks would happen to know that if you highlight a bitcoin address when bitcoin was running you could automatically launch bitcoin. And there's no way that would be turned on by default. And it also seems to me clipboard monitoring is perfect for a standalone, general-purpose utility ("if selection matches any of THESE regepxs, launch THAT applications with arguments "beginpayment %{address} %{amount}" ... ). @p{par} RE: mizerydearia portable devices: @p{brk} I've never programmed for Android or iPhone; anybody know how they handle non-standard MIME types? Can apps register themselves as content handlers? @p{par} @p{par} Thinking about actually implementing this, the hard part is getting a running (or just launched) Bitcoin's attention in a cross-platform way. Using the existing command-line control (which uses JSON-RPC under the covers) would be the most straightforward, but that requires that you set a rpcuser/rpcpassword in the bitcoin.conf file AND run bitcoind or bitcoin -server. Yuck. @p{par} I suppose, as a special case, payment request JSON-RPC calls could be allowed with no rpcpassword, and -server could be made the default. Makes me a little nervous, though. @p{par} Running bitcoin /path/to/browser/cache/with/payment_request_file (which is what the web browsers will do) should: @p{brk} IF bitcoin isn't running: launch it, and @p{(bf}wait@p{bf)} until it is ready to receive payment request messages @p{brk} Send running bitcoin (...somehow...) "Hey, we got a payment request here for you to deal with" messgae. @p{brk}