Permalink
Browse files

use the default location

  • Loading branch information...
1 parent 996db75 commit 986b00703a359a515240765d0f9b7842cf0bdef6 @goneri goneri committed Apr 26, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 main.cpp
View
@@ -12,18 +12,21 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
- if (argc<3) {
+/* if (argc<3) {
std::cerr<<"Usage: "<<argv[0]<<" somewhere/agent.cfg shomewhere/usr/bin/fusioninventory"<<std::endl;
exit(1);
- }
+ } */
Dialog w;
- QString fusInvBinPath = QString(argv[2]);
+ QString fusInvBinPath = QString("/usr/bin/fusioninventory-agent");
w.setFusInvBinPath(fusInvBinPath);
- Config c(argv[1]);
+ QString fusInvCfgPath = QString("/etc/fusioninventory/agent.cfg");
+ /* QString fusInvCfgPath = QString("/home/goneri/tmp/agent.cfg"); */
+ Config c(fusInvCfgPath);
w.loadConfig(&c);
w.show();
+
return a.exec();
}

0 comments on commit 986b007

Please sign in to comment.