equal
deleted
inserted
replaced
55 void* library = NULL; |
55 void* library = NULL; |
56 |
56 |
57 { |
57 { |
58 std::string programPath = GetProgramPath(); |
58 std::string programPath = GetProgramPath(); |
59 std::string libraryName = dirname((char*)programPath.c_str()); |
59 std::string libraryName = dirname((char*)programPath.c_str()); |
60 libraryName += "/libapplauncher.so"; |
60 libraryName += "/../lib/libapplauncher.so"; |
61 library = dlopen(libraryName.c_str(), RTLD_LAZY); |
61 library = dlopen(libraryName.c_str(), RTLD_LAZY); |
62 |
62 |
63 if (library == NULL) { |
63 if (library == NULL) { |
64 fprintf(stderr, "dlopen failed: %s\n", dlerror()); |
64 fprintf(stderr, "dlopen failed: %s\n", dlerror()); |
65 fprintf(stderr, "%s not found.\n", libraryName.c_str()); |
65 fprintf(stderr, "%s not found.\n", libraryName.c_str()); |