This is kind of a strange issue. xdg-open is supposed to open any kind of file or directory in the desktop manager's default application for that kind of file, whatever the desktop manager might be. I'm using KDE, and this used to work perfectly.
For a couple of weeks now (at the least) it has somehow stopped working. This is the output I get when trying to open a simple text file:
this is for an image:
and this is for a directory:
Putting double quotes around the file's address makes no difference, and URLs still work fine.
I've tried it with different kinds of files, in different directories, created by different programs.
As far as I know, xdg-open simply calls the DM's specific command to open things, which in my case is kde-open. kde-open works fine, so it should be something "between" xdg-open and kde-open that causes the problem.
Does anyone have any ideas?
For a couple of weeks now (at the least) it has somehow stopped working. This is the output I get when trying to open a simple text file:
Code:
$ xdg-open /home/user/Desktop/text Warning: unknown mime-type for "/home/user/Desktop/text" -- using "application/octet-stream" Error: no "view" mailcap rules found for type "application/octet-stream"
Code:
$ xdg-open /home/user/Desktop/image.jpg Error: no "view" mailcap rules found for type "image/jpeg"
Code:
$ xdg-open /home/user/Desktop/ Warning: unknown mime-type for "/home/user/Desktop/" -- using "application/octet-stream" Error: no "view" mailcap rules found for type "application/octet-stream"
I've tried it with different kinds of files, in different directories, created by different programs.
As far as I know, xdg-open simply calls the DM's specific command to open things, which in my case is kde-open. kde-open works fine, so it should be something "between" xdg-open and kde-open that causes the problem.
Does anyone have any ideas?
Comment