Skip to content

Commit ee29fe7

Browse files
emilbic28FlorianReimold
authored andcommitted
Apps: Added Mime-types and icons for eCAL Play, eCAL Sys and eCAL Rec files
1 parent 1efadbb commit ee29fe7

File tree

18 files changed

+4829
-0
lines changed

18 files changed

+4829
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,13 @@ if(BUILD_DOCS)
474474
add_subdirectory(doc)
475475
endif()
476476

477+
# --------------------------------------------------------
478+
# debscripts
479+
# --------------------------------------------------------
480+
if (UNIX)
481+
add_subdirectory(cpack/debscripts)
482+
endif()
483+
477484
#install(EXPORT eCALTargets DESTINATION cmake NAMESPACE eCAL::)
478485
include(CMakePackageConfigHelpers)
479486
write_basic_package_version_file(

app/play/play_gui/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,12 @@ install(CODE
221221
"
222222
)
223223
endif()
224+
225+
# install files required for linux mimetypes and icon
226+
if (UNIX)
227+
INSTALL (FILES "${CMAKE_CURRENT_LIST_DIR}/mimetype/ecal-play.xml"
228+
DESTINATION "${CMAKE_INSTALL_DATADIR}/mime/packages/")
229+
230+
INSTALL (FILES "${CMAKE_CURRENT_LIST_DIR}/mimetype/application-ecalmeas.svg"
231+
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/mimetypes/")
232+
endif()

app/play/play_gui/appmenu/app.desktop.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Exec=@CMAKE_INSTALL_PREFIX@/@eCAL_install_app_dir@/ecal_@TARGET_NAME@ %f
66
Terminal=false
77
Type=Application
88
Icon=ecal_@TARGET_NAME@
9+
MimeType=application/ecalmeas
910
Categories=Development;

app/play/play_gui/mimetype/application-ecalmeas.svg

Lines changed: 1587 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
3+
<mime-type type="application/ecalmeas">
4+
<comment>Textfile with ecalmeas markup</comment>
5+
<glob pattern="*.ecalmeas"/>
6+
</mime-type>
7+
</mime-info>

app/rec/rec_client_core/src/job/record_job.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ namespace eCAL
255255

256256
if (ecalmeas_file.is_open())
257257
{
258+
// For mimetypes to work, ecalmeas file should not be empty
259+
ecalmeas_file << std::string(" ");
258260
ecalmeas_file.close();
259261
files_with_metadata_.push_back(ecalmeas_file_name);
260262
}

app/rec/rec_gui/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,12 @@ install(CODE
257257
"
258258
)
259259
endif()
260+
261+
# install files required for linux mimetypes and icon
262+
if (UNIX)
263+
INSTALL (FILES "${CMAKE_CURRENT_LIST_DIR}/mimetype/ecal-rec.xml"
264+
DESTINATION "${CMAKE_INSTALL_DATADIR}/mime/packages/")
265+
266+
INSTALL (FILES "${CMAKE_CURRENT_LIST_DIR}/mimetype/application-ecalrec.svg"
267+
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/mimetypes/")
268+
endif()

app/rec/rec_gui/appmenu/app.desktop.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Exec=@CMAKE_INSTALL_PREFIX@/@eCAL_install_app_dir@/ecal_@TARGET_NAME@ %f
66
Terminal=false
77
Type=Application
88
Icon=ecal_@TARGET_NAME@
9+
MimeType=application/ecalrec
910
Categories=Development;

app/rec/rec_gui/mimetype/application-ecalrec.svg

Lines changed: 1602 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
3+
<mime-type type="application/ecalrec">
4+
<comment>Textfile with ecalrec markup</comment>
5+
<glob pattern="*.ecalrec"/>
6+
</mime-type>
7+
</mime-info>

0 commit comments

Comments
 (0)