Bug 250251 - Change path at execution
Summary: Change path at execution
Status: REPORTED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: klauncher (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-05 11:15 UTC by BRULE Herman
Modified: 2010-09-06 11:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2010-09-05 11:15:43 UTC
Version:           unspecified
OS:                Linux

Hello, my wish is when open executable, it change dir as current directory (konqueror or dolphin) for if file creation is "toto.log" (no absolute path) is created into the current directory and not home folder.
Same wish for normal file, like toto.exe open with wine do all file "toto.log" (no absolute path) in the .exe directory instead of home directory.
Thanks. I have search this bug without found it.

Reproducible: Always
Comment 1 Christoph Feck 2010-09-06 00:53:21 UTC
Do you use the KDE "Save/Save As..." file dialog to "create" the file?
Comment 2 BRULE Herman 2010-09-06 09:12:07 UTC
no (because it can by controled by KDE), example:
QFile logFile("toto.log");		logFile.open(QIODevice::ReadWrite|QIODevice::Truncate|QIODevice::Unbuffered);
logFile.close();
To do the application: test (xrw------)

When I double click into konqueror on "test" or I open file X.Y with my application "test", it will create the toto.log into /home/user.
When I open konsole by F4 and I put ./test, it will create the toto.log into the current directory (then ./toto.log) (I search that's but when I doucle click on the application)
Comment 3 Christoph Feck 2010-09-06 11:18:10 UTC
Thanks for the update. It looks like the application process launcher does not copy the working directory of the parent process, but I am not sure if this is done on purpose. Reassigning.