chore: rename project to dde-application-manager
rename project to dde-application-manager log:
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
set(BIN_NAME dde-application-loader)
|
||||
|
||||
pkg_check_modules(LIBCAP REQUIRED IMPORTED_TARGET libcap)
|
||||
|
||||
set(SRCS
|
||||
@ -29,12 +31,12 @@ set(SRCS
|
||||
../modules/util/debug/debug.cpp
|
||||
)
|
||||
|
||||
add_executable(deepin-application-loader ${SRCS})
|
||||
add_executable(${BIN_NAME} ${SRCS})
|
||||
|
||||
target_link_libraries(deepin-application-loader
|
||||
target_link_libraries(${BIN_NAME}
|
||||
pthread
|
||||
PkgConfig::LIBCAP
|
||||
stdc++fs
|
||||
Qt5::Core
|
||||
)
|
||||
install(TARGETS deepin-application-loader DESTINATION bin)
|
||||
install(TARGETS ${BIN_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
@ -238,7 +238,7 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
char socketPath[50];
|
||||
sprintf(socketPath, "/run/user/%d/deepin-application-manager.socket", getuid());
|
||||
sprintf(socketPath, "/run/user/%d/dde-application-manager.socket", getuid());
|
||||
|
||||
// register client and run quitConnect
|
||||
Socket::Client client;
|
||||
|
@ -2,6 +2,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
set(BIN_NAME dde-application-manager)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(Qt5 REQUIRED COMPONENTS Core DBus Concurrent Gui)
|
||||
find_package(DtkCore REQUIRED)
|
||||
@ -41,27 +43,27 @@ file(GLOB_RECURSE SRCS "*.h" "*.cpp" "../frameworkdbus/*.h" "../frameworkdbus/*.
|
||||
"../modules/*.h" "../modules/*.cpp" "../modules/*.hpp"
|
||||
"../utils.h" "../utils/*.cpp")
|
||||
|
||||
add_executable(deepin-application-manager
|
||||
add_executable(${BIN_NAME}
|
||||
${SRCS}
|
||||
${ADAPTER_SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(deepin-application-manager
|
||||
target_link_libraries(${BIN_NAME}
|
||||
Qt5::Core
|
||||
Qt5::DBus
|
||||
Qt5::Concurrent
|
||||
${DtkCore_LIBRARIES}
|
||||
${DtkWidget_LIBRARIES}
|
||||
Qt5::Gui
|
||||
Dtk::Core
|
||||
pthread
|
||||
PkgConfig::XCB
|
||||
PkgConfig::X11
|
||||
PkgConfig::GIO
|
||||
PkgConfig::GLib
|
||||
PkgConfig::QGSettings
|
||||
${Qt5Gui_LIBRARIES}
|
||||
${DtkWidget_LIBRARIES}
|
||||
)
|
||||
|
||||
target_include_directories(deepin-application-manager PUBLIC
|
||||
target_include_directories(${BIN_NAME} PUBLIC
|
||||
PkgConfig::XCB
|
||||
PkgConfig::X11
|
||||
PkgConfig::GIO
|
||||
@ -76,6 +78,6 @@ target_include_directories(deepin-application-manager PUBLIC
|
||||
)
|
||||
|
||||
# binary file
|
||||
install(TARGETS deepin-application-manager DESTINATION bin)
|
||||
install(TARGETS ${BIN_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
|
@ -36,7 +36,7 @@ ApplicationManagerPrivate::ApplicationManagerPrivate(ApplicationManager* parent)
|
||||
, section("AppName")
|
||||
, key("support")
|
||||
{
|
||||
const QString socketPath{QString("/run/user/%1/deepin-application-manager.socket").arg(getuid())};
|
||||
const QString socketPath{QString("/run/user/%1/dde-application-manager.socket").arg(getuid())};
|
||||
connect(&server, &Socket::Server::onReadyRead, this, &ApplicationManagerPrivate::recvClientData, Qt::QueuedConnection);
|
||||
server.listen(socketPath.toStdString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user