# juce\_launchFile fail with certain URL types

**URL:** <https://forum.juce.com/t/juce-launchfile-fail-with-certain-url-types/1827>\
**Category:** MacOSX and iOS\
**Created:** [June 24, 2007, 4:59pm UTC](https://forum.juce.com/t/juce-launchfile-fail-with-certain-url-types/1827 "2007-06-24T16:59:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![graffiti](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@graffiti](https://forum.juce.com/u/graffiti)\
**Post date:** [June 24, 2007, 4:59pm UTC](https://forum.juce.com/t/juce-launchfile-fail-with-certain-url-types/1827/1 "2007-06-24T16:59:54Z")

</div>

Howdy,

I was having some trouble with URL::launchInDefaultBrowser() failing on the mac with any URLs other than http:// ones. A little digging discovered this line in juce\_mac\_Files.cpp in function juce\_launchFile:

`if (fileName.startsWithIgnoreCase (T("http:")))
{`

Could this be tweaked so that it launches https and ftp sessions also?? (and preferably all the other ones like realaudio, iTunes links, etc too?)

For my current purposes I’ve frigged it with:

`if (fileName.startsWithIgnoreCase (T("http:"))
		|| fileName.startsWithIgnoreCase (T("https:"))
		|| fileName.startsWithIgnoreCase (T("ftp:")) )
    {`

but it would be great if URL::launchInDefaultBrowser() could launch all the common URL types 🙂

Cheers 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [June 26, 2007, 11:01am UTC](https://forum.juce.com/t/juce-launchfile-fail-with-certain-url-types/1827/2 "2007-06-26T11:01:19Z")

</div>

Yes, absolutely. Thanks for spotting that!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 3:22pm UTC](https://forum.juce.com/t/juce-launchfile-fail-with-certain-url-types/1827/3 "2017-05-12T15:22:56Z")

</div>

Closed on May 12, 2017, 3:22pm UTC


