On Ubuntu 10.10, xdg-open fails to open the file and give me the error:
No application is registered as handling this file
But xdg-mime query defaut ... succeeds for the mime type. Why?
Here is my process:
Added a new mime type
application/vnd.xxbyxdg-mime install mytype.xml. Thenxdg-mime query filetype <file name>shows that the new mime type is recognized.I wrote my desktop entry file "my-app.desktop" like this:
[Desktop Entry] Name=xxx Comment=xxx Icon= Exec=/usr/bin/my-app %U Terminal=false Type=Application Categories=Utility; MimeType=application/vnd.xx;I copied this desktop file to
~/Desktop. After I re-login, I saw the shortcut on the desktop andxdg-mime query defualt application/vnd.xxprinted out this desktop file.But,
xdg-open <file name>fails with the error:No application is registered as handling this file
I've installed nautilus. Do I miss something? How do I fix this?