Yu-Yeung Wong | 22 Aug 13:50

gnome-open doesn't honor default apps

Hi all,

I have a problem with gnome-open and default applications.

I would like to use firefox as my default browser as well as viewer
for html files.  To do this i have chosen firefox in the "preferred
applications" dialogue, as well as changed default application to open
text/html to firefox thru nautilus.  Things work as expected most of
the time.

However when I issued "gnome-open some-simple-html.html" epiphany is
used to open the file instead.  This problem doesn't show up in
nautilus. When I double click the file in nautilus firefox is launched
as expected.  The problem however is not specific to text/html.  For
example, I have Miro and Deluge installed. Miro also handles
application/x-bittorrent and for some reasons it became the default
application for gnome-open to handle bittorrent files.

I reckon this problem is inherited directly from gnome_url_show(),
which is what makes this problem annoying, because some gnome apps
apparently use gnome_url_show() to open files.

I'm using Debian if it matters.

Any help is appreciated.

Thanks,
Matt
Olav Vitters | 22 Aug 14:03

Re: gnome-open doesn't honor default apps

On Fri, Aug 22, 2008 at 07:52:15PM +0800, Yu-Yeung Wong wrote:
> I reckon this problem is inherited directly from gnome_url_show(),
> which is what makes this problem annoying, because some gnome apps
> apparently use gnome_url_show() to open files.
> 
> I'm using Debian if it matters.

What GNOME version? Seems the GIO show looks at something different than
the gnome-vfs one. So gnome-open (gnome-vfs) is different. gvfs-open
should do the right thing.
Distributions should link gnome-open to gvfs-open.. there is a bugreport
somewhere about this.

--

-- 
Regards,
Olav
WONG Yu Yeung | 22 Aug 15:01

Re: gnome-open doesn't honor default apps

Hi,

On Fri, 2008-08-22 at 14:03 +0200, Olav Vitters wrote:
> On Fri, Aug 22, 2008 at 07:52:15PM +0800, Yu-Yeung Wong wrote:
> > I reckon this problem is inherited directly from gnome_url_show(),
> > which is what makes this problem annoying, because some gnome apps
> > apparently use gnome_url_show() to open files.
> > 
> > I'm using Debian if it matters.
> 
> What GNOME version? Seems the GIO show looks at something different than
> the gnome-vfs one. So gnome-open (gnome-vfs) is different. gvfs-open
> should do the right thing.
> Distributions should link gnome-open to gvfs-open.. there is a bugreport
> somewhere about this.
> 

Thanks for pointing this out!  I didn't notice there is gvfs-open and it
works like a charm.

However the problem with gnome_url_show() is still there.  For example,
the gnome run command dialogue doesn't work well, bahaving in the same
way as gnome-open.  The same goes with (for me) tracker-search-tool and
some other gnome apps also.

A quick google doesn't give any promising results, but i reckon it might
be possible to make gnomevfs behave better without patching every
software?

Thanks,
(Continue reading)


Gmane