Bug 104570 - run option 'run from the directory where the executable is' only working when running the program in the debugger
Summary: run option 'run from the directory where the executable is' only working when...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 10:18 UTC by Serge Koganovitsch
Modified: 2007-01-07 21:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.