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. --- debian/sciteco-gtk.install | 3 +-- debian/sciteco.desktop | 8 -------- src/Makefile.am | 4 ++-- src/sciteco.desktop | 8 ++++++++ 4 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 debian/sciteco.desktop create mode 100644 src/sciteco.desktop diff --git a/debian/sciteco-gtk.install b/debian/sciteco-gtk.install index 303187c..8907904 100755 --- a/debian/sciteco-gtk.install +++ b/debian/sciteco-gtk.install @@ -12,5 +12,4 @@ ico/sciteco-32.png => usr/share/icons/hicolor/32x32/apps/sciteco.png ico/sciteco-48.png => usr/share/icons/hicolor/48x48/apps/sciteco.png ico/sciteco-256.png => usr/share/icons/hicolor/256x256/apps/sciteco.png -# Not currently part of source tree: -debian/sciteco.desktop usr/share/applications +src/sciteco.desktop => usr/share/applications diff --git a/debian/sciteco.desktop b/debian/sciteco.desktop deleted file mode 100644 index f2fbd0e..0000000 --- a/debian/sciteco.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[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++; 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