Commit 11c2600c authored by LordTermor's avatar LordTermor

Updated cmake rules; added tray icon autostart support

parent 6c75b85f
......@@ -14,4 +14,4 @@ endif(NOT DEFINED VERSION)
add_subdirectory(app)
install(TARGETS libqpamac desktopnotificationservices pamac-qt-app)
install(TARGETS libqpamac desktopnotificationservices pamac-qt)
cmake_minimum_required(VERSION 3.14)
project(pamac-qt-app)
project(pamac-qt)
find_package(Qt5Core REQUIRED)
find_package(Qt5QuickCompiler)
......@@ -14,3 +14,8 @@ target_link_libraries(${PROJECT_NAME} libqpamac)
target_link_libraries(${PROJECT_NAME} desktopnotificationservices)
qt5_use_modules(${PROJECT_NAME} Core Qml Quick QuickControls2 Widgets)
configure_file(data/applications/pamac-qt.desktop.in data/applications/pamac-qt.desktop)
configure_file(data/applications/pamac-qt-tray.desktop.in data/applications/pamac-qt-tray.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/data/applications/pamac-qt.desktop DESTINATION share/applications/ )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/data/applications/pamac-qt-tray.desktop DESTINATION /etc/xdg/autostart/ )
[Desktop Entry]
Comment[en_US]=Manjaro Pamac Qt
Comment=Manjaro Pamac Qt
Exec=${CMAKE_INSTALL_PREFIX}/bin/pamac-qt --tray-only
GenericName[en_US]=Add/Remove Software
GenericName=Add/Remove Software
Icon=system-software-install
MimeType=
Name[en_US]=Pamac Qt
Name=Pamac Qt
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Qt;System;Settings
[Desktop Entry]
Comment[en_US]=Manjaro Pamac Qt
Comment=Manjaro Pamac Qt
Exec=${CMAKE_INSTALL_PREFIX}/bin/pamac-qt
GenericName[en_US]=Add/Remove Software
GenericName=Add/Remove Software
Icon=system-software-install
MimeType=
Name[en_US]=Pamac Qt
Name=Pamac Qt
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Qt;System;Settings
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment