views:

107

answers:

1

Hello all, i have been using Shoes in windows from couple of months and it was working awesome, but now i am having Ubuntu set up on my machine and i am trying to run shoes in it but it seems like URL is not working .... i.e nothing happens when i click on it. Have anybody observed this problem. Any help on this? thanks Pradyumna

A: 

Looking at the source code, this would seem to to be the relevant bit:

shoes/native/gtk.c

shoes_browser_open(char *url)
{
    VALUE browser = rb_str_new2("/etc/alternatives/x-www-browser '");
    rb_str_cat2(browser, url);
    rb_str_cat2(browser, "' 2>/dev/null &");
    shoes_sys(RSTRING_PTR(browser), 1);
}

Not overly familiar with Ubuntu, but perhaps in your installation /etc/alternatives/x-www-browser isn't pointing to the right place? Either that, or Shoes shouldn't be using this path?

i5m
ehh? gotta check it out... thanks anyways.
Webbisshh
Sorry, I've just read your comment under your question. I thought your problem was with something like `para link("Link", :click => "http://www.url.com")` not opening a web browser. But it is actually with internal links, such as the class-book.rb sample.
i5m