If this is a bug at all, I'd respectfully suggest it's a bug in your example script, along with any other program that makes assumptions about the environment without validating it.
You are obtaining /home/<user_name>/Documents from getcwd, because that is the current working directory when your script was executed from krunner. Everything is working as intended. If you need your cwd to be elsewhere, then it is your responsibility as a programmer to change it. For example, see the attached updated qtcwd.py which always provides the result you are looking for. ** Attachment added: "qtcwd.py" https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/867820/+attachment/2537326/+files/qtcwd.py -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kde-workspace in Ubuntu. https://bugs.launchpad.net/bugs/867820 Title: getcwd() function from python module os returns wrong directory in kubuntu To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/867820/+subscriptions -- kubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs
