You might have multiple things going on, here.
KDE and XFCE both subscribe to the xdg-* stuff, from portland.freedesktop.org
Note that all examples are done in XFCE's Terminal under XFCE. Just to make sure I'm using the xdg stuff.
xdg-open is used by KDE/XFCE programs/utilities to open something, so:
Code:
james@gaz:~$ xdg-open 'http://www.linuxquestions.org'
opens the website in your default xdg/freedesktop browser.
To see which browser that is, do this:
Code:
james@gaz:~$ xdg-settings --help
xdg-settings - get various settings from the desktop environment
Synopsis
xdg-settings { get | check | set } {property} [value]
xdg-settings { --help | --list | --manual | --version }
Use 'man xdg-settings' or 'xdg-settings --manual' for additional info.
james@gaz:~$ xdg-settings --list
Known properties:
default-web-browser Default web browser
james@gaz:~$ xdg-settings get default-web-browser
firefox.desktop
james@gaz:~$
Use xdg-settings set to set it to something else, like chrome.desktop or something. I guess? Haven't done it myself.
This whole thing is in the xdg-utils package, for -current:
Code:
james@gaz:~$ ls -l /var/log/packages/xdg*
-rw-r--r-- 1 root root 8253 Jul 28 2012 /var/log/packages/xdg-user-dirs-0.14-i486-1
-rw-r--r-- 1 root root 1485 Nov 1 2013 /var/log/packages/xdg-utils-1.1.0_rc1-noarch-2
james@gaz:~$
Also xdg-mime for mime-type handling:
Code:
james@gaz:~$ xdg-mime
xdg-mime - command line tool for querying information about file type handling
and adding descriptions for new file types
Synopsis
xdg-mime query { filetype | default } ...
xdg-mime default application mimetype(s)
xdg-mime install [--mode mode] [--novendor] mimetypes-file
xdg-mime uninstall [--mode mode] mimetypes-file
xdg-mime { --help | --manual | --version }
Use 'man xdg-mime' or 'xdg-mime --manual' for additional info.
james@gaz:~$
Non-freedesktop.org / portland (project name?) Desktop Environments use system mime types and similar, I _think_. So, depending upon whether you're using KDE/XFCE programs or, e.g., Window Maker or something, you can expect different behavior.
Hope this helps somebody some.