ThreadScope
ThreadScope copied to clipboard
Click help->Online Tutorial
Dies with
threadscope: Operation not supported
I'm on OSX.
Help -> Website does the same thing.
Thank you for the report, but I can't reproduce this on Ubuntu. Could somebody else on OSX try? Perhaps your machine (or OSX in general? that would be good to know) doesn't allow random applications to open a browser? At least with this method:
GtkExtras.launchProgramForURI "http://www.haskell.org/haskellwiki/ThreadScope_Tour"
Googling: gtk_show_uri operation not supported
Looks like there's tons of reports of this going wrong on various systems for many years.
On OS X specifically there's a program called /usr/bin/open which, if passed a URL will open it with the default browser.
OK, so this is not a gtk2hs bug either. I'm open to a PR that catches the exception (if possible) and tries another method of opening the webpage. Or detects a system where gtk_show_uri is known to fail often and instead uses another method.
It's a thorny issue. You'd think in 2014 opening a web page is something we could agree on but bug reports cover OS X, Windows and especially Linux. It depends on how GTK is configured as well as your desktop environment. Here seems to be the only legit solution. It will make a nice library if I get around to porting it to Haskell. I'll put it on the todo list but no eta.
Impressive. ;) Keeping the issue open. If you are reasonably experienced in Haskell and you'd rather help a newbie do that (or just pair with someone), you may think about adding this lib to https://www.haskell.org/haskellwiki/Haskell_projects_needing_help and announcing on, I guess, cafe and [email protected].