summaryrefslogtreecommitdiff
path: root/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.cpp')
-rw-r--r--client/main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/client/main.cpp b/client/main.cpp
index f7da59e..7c8be32 100644
--- a/client/main.cpp
+++ b/client/main.cpp
@@ -20,7 +20,6 @@ ProxyClientApp *this_app;
int main(int argc, char *argv[])
{
Logger::Info("Starting client application\n");
-
string path = argv[0];
QString dir;
size_t p = path.find_last_of(PathSlash);
@@ -34,6 +33,7 @@ int main(int argc, char *argv[])
}
// check if client should be update
+ fprintf(stderr, "%s\n", dir.toStdString().c_str());
QFileInfo newClient(dir + PathSlash + "client.bin.latest");
if (newClient.exists())
{
@@ -49,14 +49,9 @@ int main(int argc, char *argv[])
Logger::Error("Can't launch updater to update client app\n");
}
}
-
// check if initial config exists (config.cfg)
// without it application is useless
QFileInfo configInfo(dir + PathSlash + "config.cfg");
-
- fprintf(stderr, "%s\n", configInfo.fileName().toStdString().c_str());
-
-
if (! configInfo.exists())
{
Logger::Fatal("Initial configuration file (config.cfg) do not exist!\n");