Skip to content

Commit c594583

Browse files
committed
Fix paths to removal/update helpers
1 parent 420c279 commit c594583

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/shared/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ add_library(shared STATIC shared.h shared.cpp)
22
target_link_libraries(shared PUBLIC PkgConfig::glib Qt5::Core Qt5::Widgets Qt5::DBus xdg-basedir libappimage translationmanager trashbin)
33
target_compile_definitions(shared
44
PRIVATE -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
5+
PRIVATE -DCMAKE_INSTALL_LIBDIR="${CMAKE_INSTALL_LIBDIR}"
56
PRIVATE -DCMAKE_PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}"
67
)
78
target_include_directories(shared PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

src/shared/shared.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ bool installDesktopFileAndIcons(const QString& pathToAppImage, bool resolveColli
408408
g_key_file_set_string(desktopFile.get(), removeSectionName, "Name", "Remove AppImage from system");
409409

410410
std::ostringstream removeExecPath;
411-
removeExecPath << CMAKE_INSTALL_PREFIX << "/lib/appimagelauncher/remove " << pathToAppImage.toStdString();
411+
removeExecPath << CMAKE_INSTALL_PREFIX << "/" << CMAKE_INSTALL_LIBDIR << "/appimagelauncher/remove " << pathToAppImage.toStdString();
412412
g_key_file_set_string(desktopFile.get(), removeSectionName, "Exec", removeExecPath.str().c_str());
413413

414414
// install translations
@@ -427,7 +427,7 @@ bool installDesktopFileAndIcons(const QString& pathToAppImage, bool resolveColli
427427
g_key_file_set_string(desktopFile.get(), updateSectionName, "Name", "Update AppImage");
428428

429429
std::ostringstream updateExecPath;
430-
updateExecPath << CMAKE_INSTALL_PREFIX << "/lib/appimagelauncher/update " << pathToAppImage.toStdString();
430+
updateExecPath << CMAKE_INSTALL_PREFIX << "/" << CMAKE_INSTALL_LIBDIR << "/appimagelauncher/update " << pathToAppImage.toStdString();
431431
g_key_file_set_string(desktopFile.get(), updateSectionName, "Exec", updateExecPath.str().c_str());
432432

433433
// install translations

0 commit comments

Comments
 (0)