refactor: mv res/dist/linux/app.desktop.in => deploy/org.deskflow.deskflow.desktop
This commit is contained in:
parent
363fb5621d
commit
5ddc7f8b0c
4 changed files with 10 additions and 16 deletions
|
|
@ -188,17 +188,6 @@ macro(configure_linux_packaging)
|
||||||
# 12), so we must add it manually.
|
# 12), so we must add it manually.
|
||||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qt6-qpa-plugins")
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qt6-qpa-plugins")
|
||||||
|
|
||||||
set(source_desktop_file ${DESKFLOW_PROJECT_RES_DIR}/dist/linux/app.desktop.in)
|
|
||||||
set(configured_desktop_file ${PROJECT_BINARY_DIR}/app.desktop)
|
|
||||||
set(install_desktop_file ${DESKFLOW_APP_ID}.desktop)
|
|
||||||
|
|
||||||
configure_file(${source_desktop_file} ${configured_desktop_file} @ONLY)
|
|
||||||
|
|
||||||
install(
|
|
||||||
FILES ${configured_desktop_file}
|
|
||||||
DESTINATION share/applications
|
|
||||||
RENAME ${install_desktop_file})
|
|
||||||
|
|
||||||
# Prepare PKGBUILD for Arch Linux
|
# Prepare PKGBUILD for Arch Linux
|
||||||
configure_file(${DESKFLOW_PROJECT_RES_DIR}/dist/arch/PKGBUILD.in
|
configure_file(${DESKFLOW_PROJECT_RES_DIR}/dist/arch/PKGBUILD.in
|
||||||
${CMAKE_BINARY_DIR}/PKGBUILD @ONLY)
|
${CMAKE_BINARY_DIR}/PKGBUILD @ONLY)
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,12 @@ if(WIN32)
|
||||||
|
|
||||||
elseif(NOT APPLE)
|
elseif(NOT APPLE)
|
||||||
|
|
||||||
|
# Install our desktop file
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_CURRENT_LIST_DIR}/org.deskflow.deskflow.desktop
|
||||||
|
DESTINATION share/applications
|
||||||
|
)
|
||||||
|
|
||||||
# Install our icon
|
# Install our icon
|
||||||
install(
|
install(
|
||||||
FILES ${CMAKE_CURRENT_LIST_DIR}/deskflow.png
|
FILES ${CMAKE_CURRENT_LIST_DIR}/deskflow.png
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Name=@DESKFLOW_APP_NAME@
|
Name=Deskflow
|
||||||
Comment=Mouse and keyboard sharing utility
|
Comment=Mouse and keyboard sharing utility
|
||||||
Path=/usr/bin
|
Exec=deskflow
|
||||||
Exec=/usr/bin/@GUI_BINARY_NAME@
|
Icon=org.deskflow.deskflow
|
||||||
Icon=@DESKFLOW_APP_ID@
|
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
Keywords=keyboard;mouse;sharing;network;share;
|
Keywords=keyboard;mouse;sharing;network;share;
|
||||||
|
|
@ -77,7 +77,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
QCoreApplication::setApplicationName(kAppName);
|
QCoreApplication::setApplicationName(kAppName);
|
||||||
QCoreApplication::setOrganizationName(kAppName);
|
QCoreApplication::setOrganizationName(kAppName);
|
||||||
QGuiApplication::setDesktopFileName(DESKFLOW_APP_ID);
|
QGuiApplication::setDesktopFileName(QStringLiteral("org.deskflow.deskflow"));
|
||||||
|
|
||||||
// used as a prefix for settings paths, and must not be a url.
|
// used as a prefix for settings paths, and must not be a url.
|
||||||
QCoreApplication::setOrganizationDomain(kOrgDomain);
|
QCoreApplication::setOrganizationDomain(kOrgDomain);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue