Menu

#5 Ignores HTTP url handler gconf property

open
nobody
General (2)
5
2005-07-07
2005-07-07
No

Although I have firefox set as my default Gnome web
browser, Glimmr always starts Epiphany when I select
any of the Flickr website menu items. I'm using Gnome
2.10.2 from Debian unstable and Glimmr from CVS head.

This is Glimmr's output when run:

(Glimmr:29694): GLib-CRITICAL **: g_key_file_add_group:
assertion `g_key_file_lookup_group_node (key_file,
group_name) == NULL' failed

(epiphany:29696): GLib-CRITICAL **:
g_key_file_add_group: assertion
`g_key_file_lookup_group_node (key_file, group_name) ==
NULL' failed

(epiphany:29696): Gdk-WARNING **: gdk_property_get():
length value has wrapped in calculation (did you pass
G_MAXLONG?)

And this is the contents of the http url-handler gconf
item:

~/.gconf/desktop/gnome/url-handlers/http$ cat %gconf.xml
<?xml version="1.0"?>
<gconf>
<entry name="needs_terminal" mtime="1100264701"
type="bool" value="false">
</entry>
<entry name="enabled" mtime="1100264701"
type="bool" value="true">
</entry>
<entry name="command" mtime="1120721217"
type="string">
<stringvalue>firefox %s</stringvalue>
</entry>
</gconf>

Discussion

  • Andy Piper

    Andy Piper - 2006-01-15

    Logged In: YES
    user_id=3132

    I have a similar problem. When I try to run anything from
    the Go menu, I get an error at the command-line

    epiphany: error while loading shared libraries:
    libgtkembedmoz.so: cannot open shared object file: No such
    file or directory

    libgtkmozembed.so is on my system, in the mozilla, firefox
    and thunderbird directories. I don't use epiphany.

     
  • Andy Piper

    Andy Piper - 2006-01-15

    Logged In: YES
    user_id=3132

    The fix is to change line 514 in GlimmrUI.cs to look for
    /desktop/gnome/url-handlers/http/command.

     
  • Andy Piper

    Andy Piper - 2006-01-15

    Logged In: YES
    user_id=3132

    Actually this is better:

    private string GetBrowser( ) {
    GConf.Client client = new GConf.Client( );
    try {
    string browsercmd = ( string )client.Get(
    "/desktop/gnome/url-handlers/http/command" );
    int space = browsercmd.IndexOf(" ");
    browsercmd = browsercmd.Remove(space, browsercmd.Length -
    space);
    return browsercmd;
    } catch( GConf.NoSuchKeyException e ) {
    return( "epiphany" );
    }

     

Log in to post a comment.

MongoDB Logo MongoDB