Bug 104570

Summary: run option 'run from the directory where the executable is' only working when running the program in the debugger
Product: [Applications] kdevelop Reporter: Serge Koganovitsch <serge.koganovitsch>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Serge Koganovitsch 2005-04-26 10:18:36 UTC
Version:            (using KDE KDE 3.3.91)
Installed from:    Debian testing/unstable Packages
Compiler:          g++ 3.3.5 Debian 1:3.3.5-12
OS:                Linux

Project Options => Run Options
Directory:
 Run from the current directory where the executable is.
Program:
 src/MainApp/MyProgram (relative to BUILD directory)
 (BUILD directory=~/sandbox/myprogram)
Program arguments:
 abc
Environment Variables:
 LD_LIBRARY_PATH=../Database

This works perfectly when running the application in the debugger. When simply executing the application the .so in LD_LIBRARY_PATH is not found because the current working directory is incorrectly set to the BUILD directory instead of 'BUILD'/src/MainApp
Comment 1 Florian Hackenberger 2006-10-13 13:49:41 UTC
I experience this problem even if I run the application using the debugger. My project consists of qmake files, if that is important. Please confirm.
Comment 2 Andreas Pakulat 2007-01-07 21:56:26 UTC
This is fixed in recent 3.4 SVN revisions, where you can specify the working directory directly.