Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click help->Online Tutorial #44

Open
gitfoxi opened this issue Dec 5, 2014 · 5 comments
Open

Click help->Online Tutorial #44

gitfoxi opened this issue Dec 5, 2014 · 5 comments

Comments

@gitfoxi
Copy link

gitfoxi commented Dec 5, 2014

Dies with

threadscope: Operation not supported

I'm on OSX.

Help -> Website does the same thing.

@Mikolaj
Copy link
Member

Mikolaj commented Dec 6, 2014

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"

@gitfoxi
Copy link
Author

gitfoxi commented Dec 8, 2014

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.

@Mikolaj
Copy link
Member

Mikolaj commented Dec 8, 2014

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.

@gitfoxi
Copy link
Author

gitfoxi commented Dec 9, 2014

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.

@Mikolaj
Copy link
Member

Mikolaj commented Dec 9, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants