RSS Owl is stucked to Google Chrome

Help
4r1y4n
2013-06-03
2013-06-08
  • 4r1y4n
    4r1y4n
    2013-06-03

    Hi
    After instlling Google Chrome My RSS Owl is using Chrome as external browser while my system default browser is Firefox & in RSS owl Preferences standard external browser in Firefox
    in "/usr/lib/rssowl/RSSOwl.ini" i have :
    -Dorg.eclipse.swt.browser.DefaultType=mozilla

    I have RSS Owl 2.2.0 on Ubuntu 13.04

    What is the problem?

     
    Last edit: 4r1y4n 2013-06-03
  • genodeftest
    genodeftest
    2013-06-05

    the
    -Dorg.eclipse.swt.browser.DefaultType=mozilla
    switch is for the internal browser, not the external one.
    Is there any chance some software may have overridden /usr/bin/firefox?

     
  • 4r1y4n
    4r1y4n
    2013-06-07

    No!
    "/usr/bin/firefox" opens firefox correctly!
    How rssowl calls system browser?
    I checked "gnome-open" & "xdg-open" but both of them are openning Firefox!
    Is RSSOwl reading some settings from somewhere to find browser?

     
    Last edit: 4r1y4n 2013-06-07
  • genodeftest
    genodeftest
    2013-06-07

    Can you please open RSSOwl -> Edit -> Preferences -> Browser
    1) is RSSOwl configured to use the system default browser?
    2) which browser is displayed in brackets in the option to use the system default browser?

    The code for opening the browser can be found here: https://github.com/rssowl/RSSOwl/blob/master/org.rssowl.ui/src/org/rssowl/ui/internal/util/BrowserUtils.java#L143

    RSSOwl uses Program.launch from org.rssowl.swt API which relies on libgnome and libgnomevfs(from Gnome2) for running the system default browser.

     
  • 4r1y4n
    4r1y4n
    2013-06-07

    Hi
    Thanks for attention

    1) Yes it is
    2) [Mozilla Firefox] (see attachment)
    Note: selecting third option (Manual external browser) opens firefox correctly! but i want to use intrnal browser and open forefox when I click "Open in external browser"


    Edit:
    I tried SWT's "Program.launch" in a standalone test java file to check that, is it the problem or not (With the same SWT library that RSSOwl is using); & strangly it returns false and executes nothing!!
    So it seems "useDefaultBrowser" is using "openWebBrowser" and not "Program.launch" !
    And more strange thing is "openWebBrowser" is using "Runtime.getRuntime().exec" to run "netscape" or "mozilla" commands while both of them are invaid in my system (I have neither of them & mozilla is not associated with firefox)
    So How the hell it finds Chrome ?!

     
    Last edit: 4r1y4n 2013-06-07
  • genodeftest
    genodeftest
    2013-06-08

    Which Desktop environment are you using?
    Do gvfs-open and gnome-open start the same browser?
    Is there any association in ~/.local/share/applications/mimetype.list to chrome?
    Are the GConf keys
    /desktop/gnome/applications/browser/exec
    /desktop/gnome/url-handlers/http/command
    /desktop/gnome/url-handlers/https/command
    set correctly (check with gconftool or gconf-editor) ?
    Since SWT relies on GTK2 this may be an issue with some gnome 2 preferences.

     
    Last edit: genodeftest 2013-06-08
  • 4r1y4n
    4r1y4n
    2013-06-08

    Hi
    I'm using Unity (Ubuntu 13.04 - Gnome based).
    yes both start firefox.
    No; (the file doesn't exists)

    Seems GConf is the problem!
    /desktop/gnome/applications/browser/exec is [firefox]
    but
    /desktop/gnome/url-handlers/http/command
    &
    /desktop/gnome/url-handlers/https/command
    are "sensible-browser %s" that opens Chrome!
    changing them fixed the problem.

    Thank you very much.

     
  • genodeftest
    genodeftest
    2013-06-08

    No problem.
    You could change the url-handlers in GConf to xdg-open or gnome-open so they will always be updated when you change something.