ThreadScope icon indicating copy to clipboard operation
ThreadScope copied to clipboard

Click help->Online Tutorial

Open gitfoxi opened this issue 10 years ago • 5 comments
trafficstars

Dies with

threadscope: Operation not supported

I'm on OSX.

Help -> Website does the same thing.

gitfoxi avatar Dec 05 '14 22:12 gitfoxi

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"

Mikolaj avatar Dec 06 '14 10:12 Mikolaj

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.

gitfoxi avatar Dec 08 '14 19:12 gitfoxi

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.

Mikolaj avatar Dec 08 '14 22:12 Mikolaj

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.

gitfoxi avatar Dec 09 '14 14:12 gitfoxi

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].

Mikolaj avatar Dec 09 '14 15:12 Mikolaj