diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-05-09 16:27:57 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-05-15 17:29:12 +0200 |
commit | b3ea5c93ad8862a3dfd1bb101b8629a82f40ed2d (patch) | |
tree | 3ffed7e487f5d406abd715a65a70a5123318252c /kdpkg-install/install.cpp | |
parent | 56542a067ff482aff44ac34350bc9004e0123bc4 (diff) | |
download | kdpkg-b3ea5c93ad8862a3dfd1bb101b8629a82f40ed2d.tar.gz kdpkg-b3ea5c93ad8862a3dfd1bb101b8629a82f40ed2d.zip |
Fix hardcoded installation path.
This resolves issue #1.
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0228e7e696f1a49495e9ec091fb5e8e22b21b3f8)
Diffstat (limited to 'kdpkg-install/install.cpp')
-rw-r--r-- | kdpkg-install/install.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kdpkg-install/install.cpp b/kdpkg-install/install.cpp index 3c78386..043342b 100644 --- a/kdpkg-install/install.cpp +++ b/kdpkg-install/install.cpp @@ -17,7 +17,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#else +#define PREFIX "/usr" +#endif #include <kgenericfactory.h> #include <tdelocale.h> @@ -70,7 +74,7 @@ install::install( const TQString &url, TQWidget *parent, const char *name, const if ((pipe_prefix = popen(prefixcommand.c_str(), "r")) == NULL) { - m_kdePrefix = "/usr"; + m_kdePrefix = PREFIX; } else { fgets(prefix_result, 2048, pipe_prefix); |