After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621223 - Unable to activate the url 'xxx': 'Operation not supported'
Unable to activate the url 'xxx': 'Operation not supported'
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-06-10 16:54 UTC by synthead1
Modified: 2010-06-21 15:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description synthead1 2010-06-10 16:54:26 UTC
When a link is created and clicked on, I am presented with a dialog box that reads (url censored):

Invalid Unable to activate the url 'xxx': 'Operation not supported'

Running Gnumeric 1.10.5 on Arch Linux x86_64.
Installed packages: http://codepad.org/YSZi1LzL
Comment 1 Morten Welinder 2010-06-10 17:00:22 UTC
That sounds like goffice or libgsf compiled without gvfs support.

What type of url?  http:// ftp:// other?
Comment 2 Andreas J. Guelzow 2010-06-10 17:04:45 UTC
Critical? Did it crash?
"Critical = Crashes, causes loss of data, or is a severe memory leak"

Please tell us a bit more about the url. What kind is it, mail, file, http?
How did you create the link? When you start gnumeric from a terminal window, do
you see any error messages printed there?
Comment 3 Andreas J. Guelzow 2010-06-10 17:07:40 UTC
Morten, the package list given in the description of this bug does not even mention gvfs.
Comment 4 Morten Welinder 2010-06-10 17:12:02 UTC
s/gvfs/gio/ -- part of glib.
Comment 5 synthead1 2010-06-11 14:14:08 UTC
(In reply to comment #1)
> That sounds like goffice or libgsf compiled without gvfs support.
> 
> What type of url?  http:// ftp:// other?

This is on a http:// link.

Here is how gnumeric was compiled (these are the package building scripts for Arch; human-readable, don't worry):

http://codepad.org/QVQ8wN4W
http://codepad.org/lcqX1FfR

It appears that gvfs also exists on my system as I have /usr/include/glib-2.0/gio/gvfs.h
Comment 6 Andreas J. Guelzow 2010-06-11 16:20:10 UTC
Since you have gtk2 2.0 installed, the code path is:
gnumeric calls go_gtk_url_show in goffice
for gtk2 2.20 goffice calls gtk_show_uri in gtk2
(prior to 2.14 we would have used go_url_show in goffice)

the error message "Operation not supported" comes from gtk.
Gnumeric wraps the  "Invalid Unable to activate the url 'xxx': '...'" around it.

So your problem occurs in gtk.
Comment 7 Andreas J. Guelzow 2010-06-11 16:26:30 UTC
Assuming that you are running a standrad gnome desktop, what have you set as your preferred web browser, probably in "System->Preferences/Preferred Applications"
Comment 8 Andreas J. Guelzow 2010-06-16 05:38:23 UTC
synthead1? Please answer the question of comment #7.
Comment 9 synthead1 2010-06-17 17:48:31 UTC
My aplologies for the slow reply.  I really appreciate the help.  I'm using the XFCE4 desktop.  In XFCE->Settings->Preferred Appliacations, I have set "Mozilla Firefox" as the default web browser.
Comment 10 Andreas J. Guelzow 2010-06-17 18:37:16 UTC
I am not sure that the "XFCE->Settings->Preferred Applications" stores the information where the underlying library (glib/gio or gtk) expects to find the information.

Since this happens inside or below gtk, this is really something to fix there.
Comment 11 Andreas J. Guelzow 2010-06-17 18:43:43 UTC
@synthead1: What happens if you type:
gnome-open http://blahblah/
Comment 12 Javier Jardón (IRC: jjardon) 2010-06-17 20:14:29 UTC
@synthead1

Remove all the custom Glib compilations and recompile gnumeric again
Comment 13 Christian Dywan 2010-06-18 17:22:28 UTC
GVfs only checks the GNOME specific value in gconf. Xfce doesn't write or read that.

It was suggested elsewhere that GIO should support xdg-open which would solve this problem.
Comment 14 synthead1 2010-06-21 15:11:42 UTC
(In reply to comment #11)
> @synthead1: What happens if you type:
> gnome-open http://blahblah/

My apologies!  That was exactly the case: gnome-open was not on my system.  I ran a pkgfile (a utility that finds what packages contain $1) on gnome-open and it said that it was a part of the libgnome package (why wasn't that installed?).  So I installed it, and gnumeric opens links correctly.

My apologies for filing this as a bug.  I will notify the package maintainer that he/she needs to include libgnome in the dependencies for this package.  Thank you all very much!