12.08.2013 01:31, Carsten Haitzler (The Rasterman) kirjoitti:
> On Sun, 11 Aug 2013 17:00:45 +0300 Kai Huuhko <[email protected]> said:
>
>> 11.08.2013 16:27, Carsten Haitzler (The Rasterman) kirjoitti:
>>> On Sun, 11 Aug 2013 16:09:02 +0300 Kai Huuhko <[email protected]> said:
>>>
>>>> 11.08.2013 15:00, Gustavo Sverzut Barbieri kirjoitti:
>>>>> i guess I had that, easy to add... with efreet before decoding it. are
>>>>> you sure it's not there?
>>>> Looks like EFM in E18 already handles it, I was testing in E17 where it
>>>> doesn't.
>>>>
>>>>
>>>> Another thing that I couldn't get to work in either version is magnet
>>>> links.
>>>>
>>>> They're supposed to have the mime type x-scheme-handler/magnet but
>>>> enlightenment_open says:
>>>>
>>>> $ enlightenment_open "magnet:?xt=urn:btih:4SCSEK34HOCFSSFEB6XZUXFKFHVUFG74"
>>>> ERROR: Could not get mime type for:
>>>> magnet:?xt=urn:btih:4SCSEK34HOCFSSFEB6XZUXFKFHVUFG74
>>> wtf are magnet links?
>>
>> https://en.wikipedia.org/wiki/Magnet_URI_scheme
>>
>> (That magnet link is for Bodhi 2.3.0 32-bit ISO image btw. :)
>
> bizarre. i guess i don't spend my time on p2p downloading silly cat
> videos... :) i guess that could be added. enlightenment_open was built around
> efm though... as that is expected to open file paths as thats really all it
> handles...
>

So far I've found it's only Chrome that's "misbehaving" with magnet 
links. The silly thing insists everything to be handled with xdg-open, 
which in turn delegates everything to enlightenment_open.

Firefox seems to find the magnet mime-type and suggests an application 
that's been configured for that URI scheme-handler, by default. It can 
be configured to open the app without asking the user anything.

Midori just fires away the correct application without questions. <3


All in all, I can't really say whether enlightenment_open should or 
should not handle magnet links (or indeed other URI protocols).

The way that xdg-open works seems to suggest that the DE specific 
handler should be prepared for any URI/URL that's thrown at it.

If you don't want this in enlightenment_open, then the URI should be 
parsed in xdg-open, only passing file:// urls and path-like strings to 
enlightenment_open. Anything else should then be passed to the generic 
handler that's in the script. (Although AFAIK that doesn't handle magnet 
links properly either.)

>>>>> On Sun, Aug 11, 2013 at 7:04 AM, Kai Huuhko <[email protected]> wrote:
>>>>>> 16.07.2013 01:32, Igor Murzov kirjoitti:
>>>>>>>> a read of that patch says to me that that looks good. :) submit it!
>>>>>>> Done. https://bugs.freedesktop.org/show_bug.cgi?id=66944
>>>>>> <kuuko> Hmm, I got xdg-utils updated, now the problem is that
>>>>>> enlightenment_filemanager doesn't support file:// URI's
>>>>>> <kuuko> discomfitor, any plans to add that ^ support?
>>>>>> <discomfitor> ask k-s[AWAY]
>>>>>>
>>>>>> Same question k-s
>>>>>>
>>>>>>> -- Igor
>>>>>>>
>>>>>>>>> The patch is for xdg-utils project. It makes various xdg-* scripts
>>>>>>>>> detect if enlightenment is running and use enlightenment_open in
>>>>>>>>> xdg-open.
>>>>>>>>>
>>>>>>>>> How to test the patch:
>>>>>>>>>      1. Clone xdg-utils repository from here:
>>>>>>>>>         git://anongit.freedesktop.org/xdg/xdg-utils
>>>>>>>>>      2. Apply the patch.
>>>>>>>>>      3. Run ./configure
>>>>>>>>>      4! Update scripts from scripts/ directory with:
>>>>>>>>>         $ cd scripts && make scripts
>>>>>>>>>         Without this step you won't get any changes for the xdg-*
>>>>>>>>> scripts!
>>>>>>>>>      5. Run make install
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Please test and give a response. If the patch is good i'll send it to
>>>>>>>>> xdg-utils project.
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> See everything from the browser to the database with AppDynamics
>>>>>>> Get end-to-end visibility with application monitoring from AppDynamics
>>>>>>> Isolate bottlenecks and diagnose root cause in seconds.
>>>>>>> Start your free trial of AppDynamics Pro today!
>>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>>>>>> _______________________________________________
>>>>>>> enlightenment-devel mailing list
>>>>>>> [email protected]
>>>>>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>>>>> ------------------------------------------------------------------------------
>>>>>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>>>>> It's a free troubleshooting tool designed for production.
>>>>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>>>>> Download for free and get started troubleshooting in minutes.
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> enlightenment-devel mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>>> It's a free troubleshooting tool designed for production.
>>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>>> Download for free and get started troubleshooting in minutes.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> enlightenment-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> It's a free troubleshooting tool designed for production.
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> enlightenment-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
>
>


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to