From 75533443ecae81d6861bdc1402a0e4b271838979 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 19 Jun 2023 21:20:13 +0300 Subject: distribute sciteco.desktop * Useful for packaging on platforms where we can only build from tarballs (FreeBSD) * I don't know whether it's always safe and correct to install this file into $DATADIR/applications, so the file is only distributed but not installed yet. * It contains a hardcoded binary name "gsciteco". This could actually differ depending on the concrete --program-prefix and it would be good to include the exact installation path. This however is not possible as long as we do not install this file. --- src/Makefile.am | 4 ++-- src/sciteco.desktop | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/sciteco.desktop (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index f1f073e..b9aca8a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,8 +25,8 @@ BUILT_SOURCES = dist_noinst_SCRIPTS = symbols-extract.tes -# Emscripten HTML page: -EXTRA_DIST = sciteco.html +# Emscripten HTML page and Unix desktop file: +EXTRA_DIST = sciteco.html sciteco.desktop noinst_LTLIBRARIES = libsciteco-base.la libsciteco_base_la_SOURCES = main.c sciteco.h list.h \ diff --git a/src/sciteco.desktop b/src/sciteco.desktop new file mode 100644 index 0000000..f2fbd0e --- /dev/null +++ b/src/sciteco.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=SciTECO +Comment=Scintilla-based Text Editor and Corrector +Exec=gsciteco +Icon=sciteco +Type=Application +Categories=Utility;TextEditor; +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; -- cgit v1.2.3