Ubuntu: gnome-open doesn't work for relative URL

1

If I type

gnome-open foo.pdf

it shows an error for me: Error showing url: Operation not supported. But if I give absolute path

gnome-open ~/what/ever/foo.pdf

it works fine.

Is this a known limitation or a bug?

lang2

Posted 2013-06-20T02:31:13.153

Reputation: 1 830

I may be wrong, but I think the command xdg-open can open relative URLs. Opening my Linux virtual machine right now. – Piccolo – 2013-06-20T02:39:41.837

1Odd, something must be wrong with your system as gnome-open should work as it is used in your first example and does do so on my system. – Dan D. – 2013-06-20T03:24:32.780

Answers

3

My comment was correct. If Ubuntu supports xdg-open (most distros do, but I haven't tested it), you can just do the following:

xdg-open foo.pdf

It also won't complain if you give it the full path.

xdg-open ~/what/ever/foo.pdf

Piccolo

Posted 2013-06-20T02:31:13.153

Reputation: 212