Diffstat (limited to 'noncore/unsupported/oipkg/packagelistdoclnk.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistdoclnk.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.cpp b/noncore/unsupported/oipkg/packagelistdoclnk.cpp index 575ac62..5787fdf 100644 --- a/noncore/unsupported/oipkg/packagelistdoclnk.cpp +++ b/noncore/unsupported/oipkg/packagelistdoclnk.cpp @@ -2,6 +2,7 @@ #include "packagelistdoclnk.h" #include <qpe/applnk.h> +#include <qpe/config.h> #include <qlist.h> #include "package.h" @@ -16,11 +17,17 @@ PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s) PackageListDocLnk::PackageListDocLnk() : PackageList() { - doclnkset = new DocLnkSet("/mnt/nfs/ipk","application/ipkg"); + Config cfg( "oipkg", Config::User ); + cfg.setGroup( "Common" ); + docLnkDir = cfg.readEntry( "docLnkDir", "/root/" ); + doclnkset = new DocLnkSet(docLnkDir,"application/ipkg"); } PackageListDocLnk::~PackageListDocLnk() { + Config cfg( "oipkg", Config::User ); + cfg.setGroup( "Common" ); + cfg.writeEntry( "docLnkDir", docLnkDir ); } |