[Bug 415866] Re: kupfer should set working dir

2009-08-21 Thread Luca Falavigna
In 0+c9.1-0ubuntu1 in karmic I've adopted Ulrik's fix: http://svn.debian.org/viewsvn/python-apps/packages/kupfer/trunk/debian/patches/debian_wrappers.patch?r1=3483&r2=3482&pathrev=3483 Marking Fix Released, thanks for testing ;) ** Changed in: kupfer (Ubuntu) Status: Incomplete => Fix Rele

[Bug 415866] Re: kupfer should set working dir

2009-08-21 Thread Francesco Marella
I've tested kupfer from the new package, working directory is set to my home now. Thanks. -- kupfer should set working dir https://bugs.launchpad.net/bugs/415866 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing lis

[Bug 415866] Re: kupfer should set working dir

2009-08-19 Thread Luca Falavigna
Thanks for testing. So it seems working directory is correctly set to your home, isn't it? -- kupfer should set working dir https://bugs.launchpad.net/bugs/415866 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing li

[Bug 415866] Re: kupfer should set working dir

2009-08-19 Thread Francesco Marella
Luca 'tmp/kupfer_test' contains absolute path to home folder. -- kupfer should set working dir https://bugs.launchpad.net/bugs/415866 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.c

[Bug 415866] Re: kupfer should set working dir

2009-08-19 Thread Luca Falavigna
Err... this is the correct one: import os file = os.open('/tmp/kupfer_test', os.O_WRONLY | os.O_CREAT | os.O_TRUNC) os.write(file, os.getenv('PWD')) os.close(file) -- kupfer should set working dir https://bugs.launchpad.net/bugs/415866 You received this bug notification because you are a member

[Bug 415866] Re: kupfer should set working dir

2009-08-19 Thread Luca Falavigna
I tried and it seems working correctly here. Could you please try to add the following snippet in /usr/share/kupfer/kupfer/__init__.py before "if __name__ == '__main__':" and see what /tmp/kupfer_test contains? file = os.open('/tmp/kupfer_test', os.O_WRONLY | os.O_CREAT | os.O_TRUNC) os.write(fil

[Bug 415866] Re: kupfer should set working dir

2009-08-19 Thread Ulrik Sverdrup
I don't know Luca's patching system, but I think this should work for *one part*: Instead of cd /user/share/kupfer && PYTHON -m kupfer.__init__ just exec the kupfer.py script Luca installs. a python script will first look in its directory for module imports, so it should work just fine. A new ve

[Bug 415866] Re: kupfer should set working dir

2009-08-19 Thread Ulrik Sverdrup
Kupfer should use the working dir where it's started. When started from an application launcher, this becomes the home directory automatically. The ubuntu packaging patches kupfer to be installed into /usr/share/kupfer and changes dir to this when launching kupfer, so it's not strictly *kupfer's*