Skip to content

Commit

Permalink
Install icons and add desktop file
Browse files Browse the repository at this point in the history
Add desktop file for the application and modify CMake files so that
icons will be installed on the system.
  • Loading branch information
RauliL committed Jan 15, 2019
1 parent bdcb018 commit b3d7c23
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,12 @@ INSTALL(
RUNTIME DESTINATION
bin
)

INSTALL(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/selain.desktop
DESTINATION
share/applications
)

ADD_SUBDIRECTORY(icons)
17 changes: 17 additions & 0 deletions icons/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
INSTALL(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/selain.svg
DESTINATION
share/icons/hicolor/scalable/apps
)

FOREACH(ICON_SIZE 16 32 48 64 128 256)
INSTALL(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/selain${ICON_SIZE}.png
DESTINATION
share/icons/hicolor/${ICON_SIZE}x${ICON_SIZE}/apps
RENAME
selain.png
)
ENDFOREACH()
11 changes: 11 additions & 0 deletions selain.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Selain
Comment=Modal browser
Terminal=false
Type=Application
Version=0.9
Icon=selain
Exec=selain %u
StartupNotify=false
Categories=Application;Network;
MimeType=text/html;text/xml;application/xhtml+xml;

0 comments on commit b3d7c23

Please sign in to comment.