As the name XDG_DOCUMENTS_DIR suggests, it is supposed to point to the Documents dir, not the home dir.
So to explain the issues here.. a) the referenced installers all use loki which apparently is utterly bogus software as a script *must not* be assuming a relative envrionment (e.g. temporary data of a self-extraction installer ought to be in /tmp and installation paths ought to be absolute anyway). That said, if the loki installer does not work properly with an arbitrary working directory it is a bug in the installer and should be fixed there b) Whether random execution of scripts really should switch the working directory to documents or not is something that probably should be discussed in depth (over at bugs.kde.org or the kde-devel mailing lists, as this is the responsible part). I personally find it a bit weird that if you run a script in /tmp it would have its working directory set as ~/Documents. c) Even considering b) a script should still not operate on relative paths but absolute paths of sorts (such as mkdir foo would really be mkdir ~/foo if the home dir is where the new dir should be created) d) The fact that `kdialog --getopenfilename ./` does not work is a bug in kdialog and should be filed at bugs.kde.org - for what it is worth, it actually works in a random directory, just not in ~, which is a bit weird... again though if the home is the dir where the dialog should be focused then instead of ./, `~` or even better $HOME should be used e) The fact that random applications open in documents folder is proper behavior. If an application has desire for a particular directory they can easily define this directory. Defaulting to XDG_DOCUMENTS_DIR (if set and present) seems to me like a very sane choice as most files are documents of sorts (that is... a video player might want to default to VIDEOS and a music player might default to MUSIC...) To sum this up. The issue is within kde software and should as such be discussed and (if necessary) be addressed there rather than Kubuntu. And all but one of the highlighted issues are actually due to badly written software which should be fixed. Please report this at bugs.kde.org, thank you very much. ** Package changed: kubuntu-meta (Ubuntu) => kde4libs (Ubuntu) ** Changed in: kde4libs (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kde4libs in Ubuntu. https://bugs.launchpad.net/bugs/858592 Title: XDG_DOCUMENTS_DIR should be set to $HOME To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kde4libs/+bug/858592/+subscriptions -- kubuntu-bugs mailing list kubuntu-b...@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs